pywikipedia

Merging MediaWiki contents together

Currently I have two MediaWikis, one a slightly older version than the other. I want to merge the contents of both together, without eliminating duplicate pages. So far the best option I can think of is to use a bot (like pywikipedia) to go through all the pages of one wiki, and try inserting them into the other, renaming duplicate pag...

pywikipedia name wikiquote is not defined?

Hi guys, I'm writing a bot for Wikipedia but have a problem. When I want to get stuff from another Wikimedia site I get the error - error-name 'wikiquote' is not defined. This is when I start the code off like this- import wikipedia site = wikiquote.getSite() Yet if I was to start it with wikipedia written instead of wikiquote, it ...

pywikipedia logging in?

For various reasons I can't use login.py to log me in so I was wondering if anyone knew code so that I could log in to Wikipedia with my script without running a separate script? Cheers! ...

Problems with python script on web hosting

Hi guys, I have written a script for Wikipedia & it works fine on my computer, yet when I upload it to my web host(Dreamhost) it doesn't work & says that the user I am trying to log in as is blocked-this is not true, it works on my computer & I#m not blocked. This is the exact error message I get- A problem occurred in a Python script. ...

pywikipedia question?

Is it possible, using pywikipedia, to get just the text of the page, without any of the internal links or templates & without the pictures etc.? Cheers! ...

pywikipedia bot with https and http authentication

I'm having trouble getting my bot to login to a MediaWiki install on the intranet. I believe it is due to the http authentication protecting the wiki. Facts: The wiki root is: https://local.example.com/mywiki/ When visiting the wiki with a web browser, a popup comes up asking for enterprise credentials (I assume this is basic access ...

pywikipedia login.py socket.error: (10060, 'Operation timed out')

Hello, I'm totally new to python, so hopefully someone can help if I'm doing something obviously wrong. I'm trying to create and run a simple pywikipedia bot on vocabularies.referata.com, a semantic mediawiki site. I downloaded the pywikipedia distro and created a family file: import config, family, urllib # REQUIRED class Fam...

Downloading Images from WikiMedia Commons

Is anyone aware of a way to programatically download images from WikiMedia Commons without registering for a Bot account? It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out th...