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

Options for MediaWiki.get #54

Open
zverok opened this issue Dec 23, 2015 · 0 comments
Open

Options for MediaWiki.get #54

zverok opened this issue Dec 23, 2015 · 0 comments
Milestone

Comments

@zverok
Copy link
Contributor

zverok commented Dec 23, 2015

There's a few of them seeming extremely useful:

Section

wikipedia.get('Argentine', section: 0) # sends rvsection=0 param

Allows to extract and parse only part of the page, which can be a major speedup if you definitely know you need only infobox.

Revision date

wikipedia.get('Argentine', before: '2010-01-01').infobox.fetch('leader_name1') 
# => Argentian president in 2009

Using rvstart/rvend (timestamp parameters), we can receive historical versions of actual information

@zverok zverok added this to the 0.2.2 milestone Dec 23, 2015
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

1 participant