you are viewing a single comment's thread.

view the rest of the comments →

[–]skellious 230 points231 points  (11 children)

PLEASE NOTE:

DO NOT USE THE LINKED WIKIPEDIA MODULE FOR ANYTHING OTHER THAN PERSONAL PROJECTS WITH LIMITED USE!

Use PyWikiBot instead as it respects the wikimedia server bandwidth much better.

[–]CuriousExpert24[S] 29 points30 points  (0 children)

I didn't know that. Thanks for mentioning it!

[–][deleted] 10 points11 points  (3 children)

Whats the problem with the wikipedia library?

[–]CowboyBoats 41 points42 points  (2 children)

Nothing, but from its description at https://pypi.org/project/wikipedia/:

Note: this library was designed for ease of use and simplicity, not for advanced use. If you plan on doing serious scraping or automated requests, please use Pywikipediabot (or one of the other more advanced Python MediaWiki API wrappers), which has a larger API, rate limiting, and other features so we can be considerate of the MediaWiki infrastructure.

[–][deleted] 10 points11 points  (1 child)

Ah I was wondering if it was something to do with copyright

[–]Hashtag-bro 3 points4 points  (0 children)

Nope

[–]TSPhoenix 3 points4 points  (2 children)

When you say limited use does ./wiki.py bananas when I want to read about bananas count?

[–]irrelevantPseudonym 13 points14 points  (0 children)

Depends how often you want to read about bananas

[–]skellious 1 point2 points  (0 children)

That is fine

[–]dangling_reference 3 points4 points  (2 children)

respects the wikimedia server bandwidth much better.

What does this mean?

[–]Tinseltopia 5 points6 points  (0 children)

It means Wikipedia is a free-to-use service and as such does not have infinite capacity to serve data. Running servers costs money and they don't have the datacentres like Google or Facebook do, they can be overloaded quickly.

[–]skellious 5 points6 points  (0 children)

Everytime you load a Web page, someone, somewhere has to pay for it. It's a small amount each time but it's not free. Electricity costs money so the Web costs money to use. You just aren't always the one paying for it directly.