https://bugzilla.wikimedia.org/show_bug.cgi?id=55025
Web browser: ---
Bug ID: 55025
Summary: Wikidata support
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/319/
Reported by: jandudik
Created on: 2012-11-11 20:39:57
Subject: Wikidata support
Assigned to: xqt
Original description:
It would be very useful if bot when updating interwiki links will update \(or
create\) the item on wikidata too.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55094
Web browser: ---
Bug ID: 55094
Summary: another hint option for interwiki
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/179/
Reported by: Anonymous user
Created on: 2009-02-18 11:49:08
Subject: another hint option for interwiki
Original description:
May we have a cross-namespace hint option, let's say -hintmain?
If, for example, a category doesn't have interwiki links but we have the main
article with the same title, we might want to use interwiki links from that
article as hints for the category. That would be helpful e.g. for many
'scientific' categories - plants, animals, etc.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55224
Web browser: ---
Bug ID: 55224
Summary: Wrong language with a one-site family can yield
confusing er
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1390/
Reported by: valhallasw
Created on: 2012-01-07 00:10:07
Subject: Wrong language with a one-site family can yield confusing er
Original description:
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9820, 2011/12/29, 12:08:55\)
Python 2.6.5 \(r265:79063, Apr 16 2010, 13:09:56\)
\[GCC 4.4.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
valhallasw@dorthonion:~/src/pywikipedia/trunk$ cat user-config.py
mylang='de'
site='botwiki'
usernames\['botwiki'\]\['de'\] = u'valhallasw'
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python generate\_family\_file.py
http://botwiki.sno.cc/wiki/Main\_Page botwiki
Generating family file from http://botwiki.sno.cc/wiki/Main\_Page
==================================
api url: http://botwiki.sno.cc/w/api.php
MediaWiki version: 1.17.0
==================================
Determining other languages...
Loading wikis...
\* en... in cache
Retrieving namespaces... en
Writing families/botwiki\_family.py...
families/botwiki\_family.py already exists. Overwrite? \(y/n\)y
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 431, in main
loginMan = LoginManager\(password, sysop = sysop, verbose=verbose\)
File "login.py", line 106, in \_\_init\_\_
raise pywikibot.NoUsername\(u'ERROR: Username for %s:%s is undefined.\nIf you
have an account for that site, please add such a line to
user-config.py:\n\nusernames\[\'%s\'\]\[\'%s\'\] = \'myUsername\'' %
\(self.site.family.name, self.site.lang, self.site.family.name,
self.site.lang\)\)
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is
undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames\['botwiki'\]\['botwiki'\] = 'myUsername'
however, the correct error message would be
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 431, in main
loginMan = LoginManager\(password, sysop = sysop, verbose=verbose\)
File "login.py", line 106, in \_\_init\_\_
raise pywikibot.NoUsername\(u'ERROR: Username for %s:%s is undefined.\nIf you
have an account for that site, please add such a line to
user-config.py:\n\nusernames\[\'%s\'\]\[\'%s\'\] = \'myUsername\'' %
\(self.site.family.name, self.site.lang, self.site.family.name,
self.site.lang\)\)
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is
undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames\['botwiki'\]\['en'\] = 'myUsername'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55304
Web browser: ---
Bug ID: 55304
Summary: unnecessary blank line by cosmetic_changes.py for
pl-wiki
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/961/
Reported by: patrol
Created on: 2009-06-19 14:02:30
Subject: unnecessary blank line by cosmetic_changes.py for pl-wiki
Original description:
Pywikipedia \[http\] trunk/pywikipedia \(r6972, Jun 19 2009, 07:20:57\)
Python 2.6.2 \(r262:71600, Apr 21 2009, 15:05:37\) \[MSC v.1500 32 bit
\(Intel\)\]
during the bot operation \(cosmetic\_changes.py\) is added blank line between a
DEFAULTSORT template and categories which is unnecessary for pl-wiki
see edit of bot:
http://pl.wikipedia.org/w/index.php?title=Elle\_Macpherson&diff=17417260&ol…
and correction made by local WP:SK:
http://pl.wikipedia.org/w/index.php?title=Elle\_Macpherson&diff=17476463&ol…
Polish community will be grateful if you take this into account and correct
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55246
Web browser: ---
Bug ID: 55246
Summary: Problem with Tibetan script
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1295/
Reported by: ganz-ru
Created on: 2011-02-15 20:40:15
Subject: Problem with Tibetan script
Original description:
Here is hard edit war:
http://en.wikipedia.org/w/index.php?title=Podolsk&action=history . Bots with
the old python version add incorrect tibetan interwiki. And bot with version
2.7.1 do it correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
Web browser: ---
Bug ID: 55318
Summary: weblinkchecker.py error
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/789/
Reported by: wikishizhao
Created on: 2008-09-03 14:56:27
Subject: weblinkchecker.py error
Original description:
see:
Exception in thread 中華民國國旗 -
http://law.moj.gov.tw/Scripts/Query1A.asp?no=1D0020020&K1=國旗:
Traceback \(most recent call last\):
File "/usr/lib/python2.5/threading.py", line 486, in \_\_bootstrap\_inner
self.run\(\)
File "weblinkchecker.py", line 504, in run
linkChecker = LinkChecker\(self.url, HTTPignore = self.HTTPignore\)
File "weblinkchecker.py", line 302, in \_\_init\_\_
self.changeUrl\(url\)
File "weblinkchecker.py", line 357, in changeUrl
self.query = unicode\(urllib.quote\(self.query.encode\(encoding\), '=&'\)\)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 17-18:
ordinal not in range\(256\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55145
Web browser: ---
Bug ID: 55145
Summary: weblinkchecker URL unicode problems
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1613/
Reported by: valhallasw
Created on: 2013-04-13 19:55:05
Subject: weblinkchecker URL unicode problems
Original description:
As reported by Anima in
https://sourceforge.net/tracker/?func=detail&aid=3602096&group\_id=93107&at…
Weblinkchecker jumps through some strange unicode hoops. There is no such thing
as a unicode URL - URLs are /always/ urlencoded UTF-8 strings, so:
>>> urllib.quote\(u"ö".encode\('utf-8'\)\)
'%C3%B6'
anything else is \*wrong\*, including things like asking what encoding the web
server uses: that is only relevant for decoding the page \*text\*.
Basic test case:
>>> import weblinkchecker
>>> lc = weblinkchecker.LinkChecker\(u"http://svoya-igra.org/Райков
Александр Вадимович/"\)
Contacting server svoya-igra.org to find out its default encoding...
Error retrieving server's default charset. Using ISO 8859-1.
Traceback \(most recent call last\):
File "<stdin>", line 1, in <module>
File "weblinkchecker.py", line 218, in \_\_init\_\_
self.changeUrl\(url\)
File "weblinkchecker.py", line 275, in changeUrl
self.path = unicode\(urllib.quote\(self.path.encode\(encoding\)\)\)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 1-6:
ordinal not in range\(256\)
valhallasw@lisilwen:~/src/pywikipedia/trunk/pywikipedia$ python version.py
Pywikipedia \[svn+ssh\] valhallasw@trunk/pywikipedia \(r11368, 2013/04/13,
08:16:45, ok\)
Python 2.7.3 \(default, Aug 1 2012, 05:14:39\)
\[GCC 4.6.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55050
Web browser: ---
Bug ID: 55050
Summary: Reporting with templates in weblinkchecker.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/281/
Reported by: dixond
Created on: 2010-12-29 09:41:01
Subject: Reporting with templates in weblinkchecker.py
Original description:
It would nice to have option to report dead links with templates like
http://en.wikipedia.org/wiki/Template:Dead\_link instead of adding section in
the talk page.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55282
Web browser: ---
Bug ID: 55282
Summary: weblinkchecker.py - anoying exceptions
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1148/
Reported by: masti01
Created on: 2010-03-17 21:49:18
Subject: weblinkchecker.py - anoying exceptions
Assigned to: xqt
Original description:
While processing external links weblinkchecker often trows this exception:
Exception while processing URL
http://www.cev.lu/mmp-cgi/show.pl?cmd=tmpl&id=851&id2=150&id3=359&id4=4&id5…
in page Mistrzostwa Europy w Piłce Siatkowej Mężczyzn 1997
Exception in thread Mistrzostwa Europy w Piłce Siatkowej Mężczyzn 1997 -
http://www.cev.lu/mmp-cgi/show.pl?cmd=tmpl&id=851&id2=150&id3=359&id4=4&id5…:
Traceback \(most recent call last\):
File "/usr/lib64/python2.6/threading.py", line 525, in \_\_bootstrap\_inner
self.run\(\)
File "weblinkchecker.py", line 492, in run
ok, message = linkChecker.check\(\)
File "weblinkchecker.py", line 423, in check
msg = error\[1\]
IndexError: tuple index out of range
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55276
Web browser: ---
Bug ID: 55276
Summary: weblinkchecker should ignore URLs inside some tags,
part 2
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1164/
Reported by: djbarrett
Created on: 2010-04-12 18:33:11
Subject: weblinkchecker should ignore URLs inside some tags, part 2
Assigned to: xqt
Original description:
This is a followup to \[pywikipediabot-Bugs-1969051\] \"weblinkchecker should
ignore URLs inside some tags\"
The fix in pyrev:8076 by xqt is appreciated, but not an appropriate solution.
The particular tag I listed in the ticket, \"<sql>\", was just an
example. The fix by xqt simply hard-coded this example \(bogus\) tag into the
Pywikipedia source code:
svn diff -c8076 http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia
A better fix would be to recognize when you are reading a tag attribute:
<AnyTagGoesHere ... attr=\'http://whatever\' ...>
\{\{AnyTemplateOrParserFunction | attr=http://whatever
and ignore the URL in these situations.
$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r8050, 2010/04/01, 15:43:14\)
Python 2.4.3 \(\#1, Sep 3 2009, 15:37:37\)
\[GCC 4.1.2 20080704 \(Red Hat 4.1.2-46\)\]
--
You are receiving this mail because:
You are the assignee for the bug.