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
First Gist ..
Just checking how it works ..
➜ pywikibot-core git:(standardize_interwiki) ✗ python pwb.py scripts/standardize_interwiki.py
Loading $1...
$1 is a redirect!
Loading $IP...
$IP is a redirect!
Loading $dbr...
$dbr is a redirect!
➜ pywikibot-core git:(piper) ✗ python scripts/piper.py -filter:cat -filter:'tr A-Z a-z' -filter:'tr a-z A-Z' Wikipedia:Sandbox
WARNING: /home/innovator/pywikibot-core/pywikibot/family.py:900: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Retrieving 1 pages from wikipedia:en.
>>> Sandbox <<<
@@ -1,3 +1,3 @@
- {{Pp-semi-protected|small=yes}}{{Pp-move-indef}}
- {{Active editnotice}} <!-- See [[Wikipedia:Editnotice]] -->
- {{Selfref|For the Wikipedia feature, where anyone can experiment with editing Wikipedia pages, see [[Wikipedia:Sandbox]] or [[Wikipedia:About the Sandbox]].}}
➜ pywikibot-core git:(warnfile) ✗ python pwb.py scripts/warnfile.py -lang:'test' -family:'test'
Parsing warnfile...
Traceback (most recent call last):
File "pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "pwb.py", line 81, in run_python_file
main_mod.__dict__)
File "./scripts/warnfile.py", line 147, in <module>
main()
File "./scripts/warnfile.py", line 144, in main
def linkedPagesthroughcontentparsing(self, namespace=namespace, withImageLinks=False):
result = []
try:
thistxt = textlib.removeLanguageLinks(self.get(get_redirect=True), site=self.site)
except pywikibot.NoPage:
raise
except pywikibot.IsRedirectPage:
raise
except pywikibot.SectionError:
return []
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
➜ 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)