Skip to content

Instantly share code, notes, and snippets.

View priyankajayaswal1's full-sized avatar
👋
yo fellas !!

Priyanka Jayaswal priyankajayaswal1

👋
yo fellas !!
View GitHub Profile
# -*- coding: utf-8 -*-
msg = {
'qqq': {
'piper': u'Robot: Munging the article text.',
},
'ar': {
'piper': u'روبوت: استبدال نص المقال من خلال {}',
},
'en': {
'piper': u'Robot: Piping the article text through {}',
scripts.i18n piper
Traceback (most recent call last):
File "pwb.py", line 213, in <module>
run_python_file(filename, argv, argvu, file_package)
File "pwb.py", line 82, in run_python_file
main_mod.__dict__)
File "./scripts/piper.py", line 198, in <module>
main()
File "./scripts/piper.py", line 192, in main
bot.run()
>>> import wikipedia as pywikibot
WARNING: Type of 'proxy' changed
Was: <type 'dict'>
Now: <class 'httplib2.ProxyInfo'>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wikipedia.py", line 10530, in <module>
if config.proxy['host']:
TypeError: 'ProxyInfo' object has no attribute '__getitem__'
if sys.version_info[0] > 2:
from urllib.parse import urlparse, urljoin
from urllib.error import HTTPError
import urllib.request as urllib2
from html.parser import HTMLParser
raw_input = input
else:
from urlparse import urlparse, urljoin
import urllib2
from urllib2 import HTTPError
Retrieving 1 pages from wikipedia:en.
Still 2 active threads, lets wait
link[site] <class 'pywikibot.page.Link'>
Traceback (most recent call last):
File "pwb.py", line 213, in <module>
run_python_file(filename, argv, argvu, file_package)
File "pwb.py", line 82, in run_python_file
main_mod.__dict__)
File "./scripts/standardize_interwiki.py", line 98, in <module>
main()
File "./scripts/standardize_interwiki.py", line 76, in main
newtext = textlib.replaceLanguageLinks(oldtext, new, site=site)
➜ pywikibot-core git:(standardize_interwiki) ✗ python pwb.py scripts/standardize_interwiki.py -lang:test -family:test
Loading !...
No interwiki found.
Loading %...
WARNING: /home/innovator/pywikibot-core/pywikibot/family.py:900: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Traceback (most recent call last):
File "pwb.py", line 213, in <module>
run_python_file(filename, argv, argvu, file_package)
Traceback (most recent call last):
File "pwb.py", line 213, in <module>
run_python_file(filename, argv, argvu, file_package)
File "pwb.py", line 82, in run_python_file
main_mod.__dict__)
File "./scripts/interwiki.py", line 2645, in <module>
main()
File "./scripts/interwiki.py", line 2620, in main
bot.run()
File "./scripts/interwiki.py", line 2360, in run