Bugs item #1829405, was opened at 2007-11-10 04:47
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1829405&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Leonardo Gregianin (leogregianin)
Summary: redirect.py says pages don't exist
Initial Comment:
When inputting "python redirect.py double", 120 redirects are found, and each is individually opened, but instead of fixing them, it returns "[[PAGENAME]] doesn't exist." instead.
See the attached screenshot
anotherpeteparker(a)gmail.com
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:47
Message:
Logged In: YES
user_id=1136737
Originator: NO
The list of double redirects in wikipedia is save in cached, this article
already was deleted but the Special:doubleredirects list not up to date.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1829405&group_…
Bugs item #1820282, was opened at 2007-10-25 17:38
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py for language codes including hyphen
Initial Comment:
When i tried running featured.py with switches:
-fromlang:be-x-old
-fromlang:roa-tara
it actually started processing.
Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:37
Message:
Logged In: YES
user_id=1136737
Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for
this, don't running. And zh-classical and zh-yue work done.
>>>featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
>>> ?????? <<<
No corresponding page in wikipedia:pt
>>> ???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:36
Message:
Logged In: YES
user_id=1136737
Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for
this, don't running. And zh-classical and zh-yue work done.
>>>featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
>>> ?????? <<<
No corresponding page in wikipedia:pt
>>> ???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-26 09:47
Message:
Logged In: YES
user_id=1037345
Originator: YES
The problem seems to be here:
if len(fromlang)==1 and fromlang[0].index("-")>=0:
Apparently, if you only specify one language, it considers the hyphen as a
separator between the first and last languages to process.
If I specify:
-fromlang:zh-yue,zh-yue
then I can make it work.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-25 17:49
Message:
Logged In: YES
user_id=1037345
Originator: YES
I just tried for implemented language codes zh-yue and zh-classical. No
work is done by the bot. It doesn't even try to download the template
linking pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Bugs item #1820282, was opened at 2007-10-25 17:38
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py for language codes including hyphen
Initial Comment:
When i tried running featured.py with switches:
-fromlang:be-x-old
-fromlang:roa-tara
it actually started processing.
Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:36
Message:
Logged In: YES
user_id=1136737
Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for
this, don't running. And zh-classical and zh-yue work done.
>>>featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
>>> ?????? <<<
No corresponding page in wikipedia:pt
>>> ???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-26 09:47
Message:
Logged In: YES
user_id=1037345
Originator: YES
The problem seems to be here:
if len(fromlang)==1 and fromlang[0].index("-")>=0:
Apparently, if you only specify one language, it considers the hyphen as a
separator between the first and last languages to process.
If I specify:
-fromlang:zh-yue,zh-yue
then I can make it work.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-25 17:49
Message:
Logged In: YES
user_id=1037345
Originator: YES
I just tried for implemented language codes zh-yue and zh-classical. No
work is done by the bot. It doesn't even try to download the template
linking pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Patches item #1820649, was opened at 2007-10-26 08:49
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Rotem Liss (rotemliss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Reason is double-encoded when moving pages
Initial Comment:
The reason is double-encoded when moving pages. Thus, python throws an exception when a user tries to move a page with a non-ASCII reason. Attaching a patch to remove the double-encoding.
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:09
Message:
Logged In: YES
user_id=1136737
Originator: NO
Already fixed.
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:09
Message:
Logged In: YES
user_id=1136737
Originator: NO
Already fixed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&group_…
Patches item #1820649, was opened at 2007-10-26 08:49
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Rotem Liss (rotemliss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Reason is double-encoded when moving pages
Initial Comment:
The reason is double-encoded when moving pages. Thus, python throws an exception when a user tries to move a page with a non-ASCII reason. Attaching a patch to remove the double-encoding.
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:09
Message:
Logged In: YES
user_id=1136737
Originator: NO
Already fixed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&group_…
Bugs item #1831153, was opened at 2007-11-13 08:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831153&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py enters loop when getting pages from ru-sib:
Initial Comment:
interwiki.py keeps waiting for pages from ru-sib: and stalls. Here's the relevant log:
Getting 1 pages from wikipedia:ru-sib...
Traceback (most recent call last):
File "C:\Bot\pywikipedia\wikipedia.py", line 2347, in run
data = self.getData()
File "C:\Bot\pywikipedia\wikipedia.py", line 2502, in getData
response, data = self.site.postForm(address, predata)
File "C:\Bot\pywikipedia\wikipedia.py", line 3719, in postForm
raise ServerError(e)
ServerError: (11001, 'getaddrinfo failed')
DBG> got network error in _GetAll.run. Sleeping for 15 seconds...
Traceback (most recent call last):
File "C:\Bot\pywikipedia\wikipedia.py", line 2347, in run
data = self.getData()
File "C:\Bot\pywikipedia\wikipedia.py", line 2502, in getData
response, data = self.site.postForm(address, predata)
File "C:\Bot\pywikipedia\wikipedia.py", line 3719, in postForm
raise ServerError(e)
ServerError: (11001, 'getaddrinfo failed')
DBG> got network error in _GetAll.run. Sleeping for 30 seconds...
Traceback (most recent call last):
File "C:\Bot\pywikipedia\wikipedia.py", line 2347, in run
data = self.getData()
File "C:\Bot\pywikipedia\wikipedia.py", line 2502, in getData
response, data = self.site.postForm(address, predata)
File "C:\Bot\pywikipedia\wikipedia.py", line 3719, in postForm
raise ServerError(e)
ServerError: (11001, 'getaddrinfo failed')
DBG> got network error in _GetAll.run. Sleeping for 45 seconds...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831153&group_…
> I have below a simple snippet of code that should get from wiktionary, an
> existing page with its contents. However, I face a problem that the the
> <textarea[^\>]*> </textarea> section in the received page is EMPTY !!
Why use your own code while there is a framework that does this exact
thing for you?
wikipedia.Page(wikipedia.getSite('en', 'wiktionary'), '%E3%82%A2').get()
is less work, really.
Secondly, please do *not* copy pywikipedia's user-agent string when
creating your own http requests; think of one yourself. The wikimedia
servers are more than happy to provide you with data when using *any*
user-agent so there is no reason to forge it.
> Still, if I copy the same URL
> (http://en.wiktionary.org/w/index.php?title=%E3%82%A2
> <http://en.wiktionary.org/w/index.php?title=%E3%82%A2&action=edit>
> &action=edit) into my internet explorer 6.0, my resultant page indeed
> contains a textarea section with valid data..
If you take a look at the outputted HTML, you should have your first clue:
http://elladan/~valhallasw/uit.html
states:
"Preview
This is only a preview; changes have not yet been saved!"
Apparently your request actually sends empty data to be previewed. No, I
don't know why and how. Grab Wireshark (formerly known as Ethereal) and do
some network debugging. Or grab firefox with developer plugins. Or... etc
;)
Best regards,
--valhallasw
Revision: 4536
Author: leogregianin
Date: 2007-11-13 15:57:19 +0000 (Tue, 13 Nov 2007)
Log Message:
-----------
documentation -after command by Malafaya
Modified Paths:
--------------
trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py
===================================================================
--- trunk/pywikipedia/featured.py 2007-11-13 15:53:29 UTC (rev 4535)
+++ trunk/pywikipedia/featured.py 2007-11-13 15:57:19 UTC (rev 4536)
@@ -10,6 +10,8 @@
* -fromlang:xx,yy : xx is your language and yy the language was verified or
using -fromall to verified all languages.
+
+* -after:zzzz : process pages after and including page zzzz
usage: featured.py [-interactive] [-nocache] [-fromlang:xx,yy|-fromall]