This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
msg = { | |
'qqq': { | |
'piper': u'Robot: Munging the article text.', | |
}, | |
'ar': { | |
'piper': u'روبوت: استبدال نص المقال من خلال {}', | |
}, | |
'en': { | |
'piper': u'Robot: Piping the article text through {}', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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__' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Retrieving 1 pages from wikipedia:en. | |
Still 2 active threads, lets wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔇 | |
〈...〉 | |
𝛂 - alpha | |
Retrieving 1 pages from meta:meta. | |
WARNING: preloadpages: Query returned unexpected title 'Template talk:Square root B' | |
Search engine | number of queries | |
--------------------------------- | |
Google | 0 | |
Yahoo! | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ pywikibot-core git:(copyright) ✗ python pwb.py scripts/copyright/copyright.py -lang:test -family:test -start:! | |
WARNING: You don't have set a Yahoo AppID, search engine is disabled. | |
WARNING: You don't have set a Google Web API license key, search engine is disabled. | |
Retrieving 40 pages from test:test. | |
115116 | |
A B C | |
% | |
16474 | |
A | |
A bugzilla 04951 |