Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- matt@mythtv:~/Desktop/pywikipedia$ python upload.py -v "The New York Times, 1900-12-04.djvu"
- Config.py
- - base_dir: /home/matt/Desktop/pywikipedia
- - done.
- Pywikipediabot [http] trunk/pywikipedia (r9423, 2011/07/31, 14:08:01)
- Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
- [GCC 4.5.2]
- Getting information for site commons:commons
- ==== API action:query ====
- meta: userinfo
- uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
- ----------------
- Requesting API query from commons:commons
- Password for user mattwj2002 on commons:commons:
- Logging in to commons:commons as mattwj2002 via API.
- ==== API action:login ====
- lgname: mattwj2002
- lgpassword: XXXXX
- ----------------
- Requesting API query from commons:commons
- ==== API action:login ====
- lgname: mattwj2002
- lgtoken: 3e781937acc90fdc64a1ec85dc8ba178
- lgpassword: XXXXX
- ----------------
- Requesting API query from commons:commons
- Should be logged in now
- Reading file The New York Times, 1900-12-04.djvu
- The filename on the target wiki will default to: The New York Times, 1900-12-04.djvu
- Enter a better name, or press enter to accept:
- The suggested description is:
- Do you want to change this description? ([y]es, [N]o) N
- Uploading file to commons:commons via API....
- ==== API action:upload ====
- comment:
- filename: The_New_York_Times,_1900-12-04.djvu
- token: ade0560ed77d16dbf754d5a266684650+\
- ----------------
- Requesting API query from commons:commons
- DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
- File "upload.py", line 435, in <module>
- main()
- File "upload.py", line 431, in main
- bot.run()
- File "upload.py", line 403, in run
- return self.upload_image()
- File "upload.py", line 265, in upload_image
- data = query.GetData(params, self.targetSite)
- File "/home/matt/Desktop/pywikipedia/query.py", line 137, in GetData
- wikipedia.output('Received a bad login token error from the server. Attempting to refresh.')
- File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
- print traceback.print_stack()
- None
- DBG> Attempting to recover, but please report this problem
- Received a bad login token error from the server. Attempting to refresh.
- Getting a token.
- Getting information for site commons:commons
- ==== API action:query ====
- meta: userinfo
- uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
- ----------------
- Requesting API query from commons:commons
- WARNING: Your account on commons:commons does not have a bot flag. Its edits will be visible in the recent changes and it may get blocked.
- DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
- File "upload.py", line 435, in <module>
- main()
- File "upload.py", line 431, in main
- bot.run()
- File "upload.py", line 403, in run
- return self.upload_image()
- File "upload.py", line 265, in upload_image
- data = query.GetData(params, self.targetSite)
- File "/home/matt/Desktop/pywikipedia/query.py", line 137, in GetData
- wikipedia.output('Received a bad login token error from the server. Attempting to refresh.')
- File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
- print traceback.print_stack()
- None
- DBG> Attempting to recover, but please report this problem
- Received a bad login token error from the server. Attempting to refresh.
- Getting a token.
- Getting information for site commons:commons
- ==== API action:query ====
- meta: userinfo
- uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
- ----------------
- Requesting API query from commons:commons
- WARNING: Your account on commons:commons does not have a bot flag. Its edits will be visible in the recent changes and it may get blocked.
- DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
- File "upload.py", line 435, in <module>
- main()
- File "upload.py", line 431, in main
- bot.run()
- File "upload.py", line 403, in run
- return self.upload_image()
- File "upload.py", line 268, in upload_image
- pywikibot.output("%s" % data)
- File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
- print traceback.print_stack()
- None
- DBG> Attempting to recover, but please report this problem
- {u'upload': {u'result': u'Success', u'imageinfo': {u'comment': u'', u'sha1': u'f5854e3e1ac825312d24c991d0b6abf09533d0fe', u'bitdepth': 0, u'pagecount': 16, u'url': u'http://upload.wikimedia.org/wikipedia/commons/3/39/The_New_York_Times%2C_1900-12-04.djvu', u'timestamp': u'2011-07-31T20:46:27Z', u'parsedcomment': u'', u'userid': 4030, u'metadata': [], u'height': 6959, u'width': 5335, u'mime': u'image/vnd.djvu', u'user': u'Mattwj2002', u'descriptionurl': u'http://commons.wikimedia.org/wiki/File:The_New_York_Times,_1900-12-04.djvu', u'size': 98393646}, u'filename': u'The_New_York_Times,_1900-12-04.djvu'}}
- Upload successful.
- matt@mythtv:~/Desktop/pywikipedia$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement