Topic on Manual talk:Pywikibot

Get wd item from wikipedia page in bulk

3
Framawiki (talkcontribs)

Hello, calling pywikibot.ItemPage.fromPage(page) for each page takes a long time.

I'm using wikidata.preloadpages(list) to get page content in bulk, it works well, is there similar preload function for ItemPage.fromPage()?

Thanks!

Matěj Suchánek (talkcontribs)

There is DataSite.preload_entities. Note that it doesn't maintain the implicit relationship between pages and items.

Framawiki (talkcontribs)

if there is preloadpages, that's logical that preload_entities exists too, thanks Matěj!

Reply to "Get wd item from wikipedia page in bulk"