Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wbgetitemsbyid #5

Open
svrnwnsch opened this issue Nov 26, 2012 · 1 comment
Open

wbgetitemsbyid #5

svrnwnsch opened this issue Nov 26, 2012 · 1 comment

Comments

@svrnwnsch
Copy link
Contributor

the api changed a little bit so it is now again items and not entities this needs to be fixed.

But there is also another problem if you have bot-rights you schould get up to 500 pages per request, but therefor you first have to login with action=login, could it be possible to implent this so e.g. if in the config the parameter: botflag = True the scripts automatically logs in (when its imported) an store a cookie.

@rotsee
Copy link

rotsee commented Jan 7, 2014

The list of ids should also be sliced in sets of 50 / 500, perhaps like this:

chunks=[wikidataCodes[x:x+49] for x in xrange(0, len(wikidataCodes), 49)]
for c in chunks:
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants