Revision: 4629
Author: filnik
Date: 2007-12-03 14:27:54 +0000 (Mon, 03 Dec 2007)
Log Message:
-----------
Little update, adding the -up feature
Modified Paths:
--------------
trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py
===================================================================
--- trunk/pywikipedia/add_text.py 2007-12-01 22:28:42 UTC (rev 4628)
+++ trunk/pywikipedia/add_text.py 2007-12-03 14:27:54 UTC (rev 4629)
@@ -31,6 +31,7 @@
-newimages Add text in the new images
-untagged Add text in the images that doesn't have any license template
-always If used, the bot won't asked if it should add the text specified
+-up If used, put the text above and not below
"""
#
@@ -130,6 +131,7 @@
exceptUrl = False
genFactory = pagegenerators.GeneratorFactory()
errorCount = 0
+ up = False
for arg in wikipedia.handleArgs():
if arg.startswith('-text'):
@@ -164,6 +166,8 @@
else:
untaggedProject = arg[10:]
generator = untaggedGenerator(untaggedProject)
+ elif arg == '-up':
+ up = True
elif arg.startswith('-newimages'):
if len(arg) == 10:
limit = wikipedia.input(u'How many images do you want to check?')
@@ -203,6 +207,293 @@
if result != []:
wikipedia.output(u'Exception! regex (or word) use with -except, is in the page. Skip!')
continue
+ if not up:
+ newtext = text
+ categoryNamespace = site.namespace(14)
+ regexpCat = re.compile(r'\[\[((?:category|%s):.*?)\]\]' % categoryNamespace.lower(), re.I)
+ categorieInside = regexpCat.findall(text)
+ newtext = wikipedia.removeCategoryLinks(newtext, site)
+ interwikiInside = page.interwiki()
+ interwikiList = list()
+ for paginetta in interwikiInside:
+ nome = str(paginetta).split('[[')[1].split(']]')[0]
+ interwikiList.append(nome)
+ lang = nome.split(':')[0]
+ newtext = wikipedia.removeLanguageLinks(newtext, site)
+ interwikiList.sort()
+ newtext += "\n%s" % addText
+ for paginetta in categorieInside:
+ try:
+ newtext += '\n[[%s]]' % paginetta.decode('utf-8')
+ except UnicodeEncodeError:
+ try:
+ newtext += '\n[[%s]]' % paginetta.decode('Latin-1')
+ except UnicodeEncodeError:
+ newtext += '\n[[%s]]' % paginetta
+ newtext += '\n'
+ starsListInPage = list()
+ for star in starsList:
+ regex = re.compile('(\{\{(?:template:|)%s\|.*?\}\}\n)' % star, re.I)
+ risultato = regex.findall(newtext)
+ if risultato != []:
+ newtext = regex.sub('', newtext)
+ for element in risultato:
+ newtext += '\n%s' % element
+ for paginetta in interwikiList:
+ try:
+ newtext += '\n[[%s]]' % paginetta.decode('utf-8')
+ except UnicodeEncodeError:
+ try:
+ newtext += '\n[[%s]]' % paginetta.decode('Latin-1')
+ except UnicodeEncodeError:
+ newtext += '\n[[%s]]' % paginetta
+ else:
+ newtext = addText + '\n' + text
+ wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title())
+ wikipedia.showDiff(text, newtext)
+ while 1:
+ if not always:
+ choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
+ if choice.lower() in ['a', 'all']:
+ always = True
+ if choice.lower() in ['n', 'no']:
+ break
+ if choice.lower() in ['y', 'yes'] or always:
+ try:
+ page.put(newtext, summary)
+ except wikipedia.EditConflict:
+ wikipedia.output(u'Edit conflict! skip!')
+ break
+ except wikipedia.ServerError:
+ errorCount += 1
+ if errorCount < 5:
+ wikipedia.output(u'Server Error! Wait..')
+ time.sleep(3)
+ continue
+ else:
+ raise wikipedia.ServerError(u'Fifth Server Error!')
+ except wikipedia.SpamfilterError, e:
+ wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url))
+ break
+ except wikipedia.PageNotSaved, error:
+ wikipedia.output(u'Error putting page: %s' % (error.args,))
+ break
+ except wikipedia.LockedPage:
+ wikipedia.output(u'Skipping %s (locked page)' % (page.title(),))
+ break
+ else:
+ # Break only if the errors are one after the other...
+ errorCount = 0
+ break
+if __name__ == "__main__":
+ try:
+ main()
+ finally:
+ wikipedia.stopme()#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+This is a Bot written by Filnik to add a text in a given category.
+
+--- GenFactory Generator is used ---
+-start Define from which page should the Bot start
+-ref Use the ref as generator
+-cat Use a category as generator
+-filelinks Use all the links to an image as generator
+-unusedfiles
+-unwatched
+-withoutinterwiki
+-interwiki
+-file
+-uncatfiles
+-uncatcat
+-uncat
+-subcat
+-transcludes Use all the page that transclude a certain page as generator
+-weblink Use the pages with a certain web link as generator
+-links Use the links from a certain page as generator
+-regex Only work on pages whose titles match the given regex
+
+--- Other parameters ---
+-page Use a page as generator
+-text Define which text add
+-summary Define the summary to use
+-except Use a regex to understand if the template is already in the page
+-excepturl Use the html page as text where you want to see if there's the text, not the wiki-page.
+-newimages Add text in the new images
+-untagged Add text in the images that doesn't have any license template
+-always If used, the bot won't asked if it should add the text specified
+"""
+
+#
+# (C) Filnik, 2007
+#
+# Distributed under the terms of the MIT license.
+#
+__version__ = '$Id: AddText.py,v 1.0 2007/11/27 17:08:30 filnik Exp$'
+#
+
+import re, pagegenerators, urllib2, urllib
+import wikipedia, catlib
+
+class NoEnoughData(wikipedia.Error):
+ """ Error class for when the user doesn't specified all the data needed """
+
+class NothingFound(wikipedia.Error):
+ """ An exception indicating that a regex has return [] instead of results."""
+
+def pageText(url):
+ try:
+ request = urllib2.Request(url)
+ user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7'
+ request.add_header("User-Agent", user_agent)
+ response = urllib2.urlopen(request)
+ text = response.read()
+ response.close()
+ # When you load to many users, urllib2 can give this error.
+ except urllib2.HTTPError:
+ wikipedia.output(u"Server error. Pausing for 10 seconds... " + time.strftime("%d %b %Y %H:%M:%S (UTC)", time.gmtime()) )
+ time.sleep(10)
+ request = urllib2.Request(url)
+ user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7'
+ request.add_header("User-Agent", user_agent)
+ response = urllib2.urlopen(request)
+ text = response.read()
+ response.close()
+ return text
+
+def untaggedGenerator(untaggedProject, limit = 500):
+ lang = untaggedProject.split('.', 1)[0]
+ project = '.' + untaggedProject.split('.', 1)[1]
+ if lang == 'commons':
+ link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikifam=comm…'
+ else:
+ link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikilang=' + lang + '&wikifam=' + project + '&order=img_timestamp&max=' + str(limit) + '&ofs=0&max=' + str(limit)
+ text = pageText(link)
+ #print text
+ regexp = r"""<td valign='top' title='Name'><a href='http://.*?\..*?\.org/w/index\.php\?title=(.*?)'>.*?</a></td>"""
+ results = re.findall(regexp, text)
+ if results == []:
+ print link
+ raise NothingFound('Nothing found! Try to use the tool by yourself to be sure that it works!')
+ else:
+ for result in results:
+ yield wikipedia.Page(self.site, result)
+
+def newImages(limit):
+ # Search regular expression to find links like this (and the class attribute is optional too)
+ # class="new" title="Immagine:Soldatino2.jpg">Immagine:Soldatino2.jpg</a>" <span class="comment">
+ url = "/w/index.php?title=Special:Log&type=upload&user=&page=&pattern=&limit=%d&offset=0" % int(limit)
+ site = wikipedia.getSite()
+ textrun = site.getUrl(url)
+ image_namespace = site.image_namespace() + ":"
+ regexp = r'(class=\"new\" |)title=\"' + image_namespace + '(.*?)\.(\w\w\w|jpeg)\">.*?</a>\".*?<span class=\"comment\">'
+ pos = 0
+ done = list()
+ ext_list = list()
+ r = re.compile(regexp, re.UNICODE)
+ while 1:
+ m = r.search(textrun, pos)
+ if m == None:
+ wikipedia.output(u"\t\t>> All images checked. <<")
+ break
+ pos = m.end()
+ new = m.group(1)
+ im = m.group(2)
+ ext = m.group(3)
+ # This prevent pages with strange characters. They will be loaded without problem.
+ image = im + "." + ext
+ if new != '':
+ wikipedia.output(u"Skipping %s because it has been deleted." % image)
+ done.append(image)
+ if image not in done:
+ done.append(image)
+ yield wikipedia.Page(site, 'Image:%s' % image)
+
+def main():
+ starsList = ['link[ _]fa', 'link[ _]adq', 'enllaç[ _]ad',
+ 'link[ _]ua', 'legătură[ _]af', 'destacado',
+ 'ua', 'liên k[ _]t[ _]chọn[ _]lọc']
+ summary = None
+ addText = None
+ regexSkip = None
+ generator = None
+ always = False
+ exceptUrl = False
+ genFactory = pagegenerators.GeneratorFactory()
+ errorCount = 0
+
+ for arg in wikipedia.handleArgs():
+ if arg.startswith('-text'):
+ if len(arg) == 5:
+ addText = wikipedia.input(u'What text do you want to add?')
+ else:
+ addText = arg[6:]
+ elif arg.startswith('-summary'):
+ if len(arg) == 8:
+ summary = wikipedia.input(u'What summary do you want to use?')
+ else:
+ summary = arg[9:]
+ elif arg.startswith('-page'):
+ if len(arg) == 5:
+ generator = list(wikipedia.input(u'What page do you want to use?'))
+ else:
+ generator = listr(arg[6:])
+ elif arg.startswith('-excepturl'):
+ exceptUrl = True
+ if len(arg) == 10:
+ regexSkip = wikipedia.input(u'What text should I skip?')
+ else:
+ regexSkip = arg[11:]
+ elif arg.startswith('-except'):
+ if len(arg) == 7:
+ regexSkip = wikipedia.input(u'What text should I skip?')
+ else:
+ regexSkip = arg[8:]
+ elif arg.startswith('-untagged'):
+ if len(arg) == 9:
+ untaggedProject = wikipedia.input(u'What project do you want to use?')
+ else:
+ untaggedProject = arg[10:]
+ generator = untaggedGenerator(untaggedProject)
+ elif arg.startswith('-newimages'):
+ if len(arg) == 10:
+ limit = wikipedia.input(u'How many images do you want to check?')
+ else:
+ limit = arg[11:]
+ generator = newImages(limit)
+ elif arg == '-always':
+ always = True
+ else:
+ generator = genFactory.handleArg(arg)
+
+ site = wikipedia.getSite()
+ pathWiki = site.family.nicepath(site.lang)
+ if not generator:
+ raise NoEnoughData('You have to specify the generator you want to use for the script!')
+ if not addText:
+ raise NoEnoughData('You have to specify what text you want to add!')
+ if not summary:
+ summary = 'Bot: Adding %s' % addText
+ for page in generator:
+ wikipedia.output(u'Loading %s...' % page.title())
+ try:
+ text = page.get()
+ except wikipedia.NoPage:
+ wikipedia.output(u"%s doesn't exist, skip!" % page.title())
+ continue
+ except wikipedia.IsRedirectPage:
+ wikipedia.output(u"%s is a redirect, skip!" % page.title())
+ continue
+ if regexSkip and exceptUrl:
+ url = '%s%s' % (pathWiki, page.urlname())
+ result = re.findall(regexSkip, site.getUrl(url))
+ elif regexSkip:
+ result = re.findall(regexSkip, text)
+ else:
+ result = []
+ if result != []:
+ wikipedia.output(u'Exception! regex (or word) use with -except, is in the page. Skip!')
+ continue
newtext = text
categoryNamespace = site.namespace(14)
regexpCat = re.compile(r'\[\[((?:category|%s):.*?)\]\]' % categoryNamespace.lower(), re.I)
Bugs item #1842905, was opened at 2007-12-02 21:39
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=1842905&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: category
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pietro Battiston (toobaz)
Assigned to: Nobody/Anonymous (nobody)
Summary: [patch] catlib _getContentsAndSupercats performance issue
Initial Comment:
catlib.py's _getContentsAndSupercats method has a performance issue that in some cases can slow a lot the process of recursiverly downloading all pages or subcategories of a category.
See this example (chosen just because it's short to report, not because it's so pathological):
###########ipython output###############
In [1]: import catlib
Checked for running processes. 1 processes currently running, including the current process.
In [2]: len(catlib.Category('it', 'Categoria:Geometria descrittiva').articlesList(recurse=True))
Getting [[Categoria:Geometria descrittiva]]...
Getting [[Categoria:Coperture a volta]]...
Getting [[Categoria:Corrispondenza biunivoca (geometria descrittiva)]]...
Getting [[Categoria:Curve piane]]...
Getting [[Categoria:Curve tridimensionali]]...
Getting [[Categoria:Glossario (geometria descrittiva)]]...
Getting [[Categoria:Metodi di rappresentazione]]...
Getting [[Categoria:Modellazione geometrica]]...
Getting [[Categoria:Tassellazioni]]...
Getting [[Categoria:Poliedri]]...
Getting [[Categoria:Tassellazioni]]...
Getting [[Categoria:Problemi di misura]]...
Getting [[Categoria:Stub geometria descrittiva]]...
Getting [[Categoria:Superfici]]...
Getting [[Categoria:Sviluppo di solidi]]...
Getting [[Categoria:Tangenza]]...
Out[2]: 393
###########end ipython output###############
As you can see, [[Categoria:Tassellazioni]] is downloaded 2 times. But I can grant you that there are a lot of much worse cases.
Anyway, I'm attaching a patch. After the patch, here are the same commands:
###########ipython output###############
In [1]: import catlib
Checked for running processes. 1 processes currently running, including the current process.
In [2]: len(catlib.Category('it', 'Categoria:Geometria descrittiva').articlesList(recurse=True))
Getting [[Categoria:Geometria descrittiva]]...
Getting [[Categoria:Coperture a volta]]...
Getting [[Categoria:Corrispondenza biunivoca (geometria descrittiva)]]...
Getting [[Categoria:Curve piane]]...
Getting [[Categoria:Curve tridimensionali]]...
Getting [[Categoria:Glossario (geometria descrittiva)]]...
Getting [[Categoria:Metodi di rappresentazione]]...
Getting [[Categoria:Modellazione geometrica]]...
Getting [[Categoria:Tassellazioni]]...
Getting [[Categoria:Poliedri]]...
Getting [[Categoria:Problemi di misura]]...
Getting [[Categoria:Stub geometria descrittiva]]...
Getting [[Categoria:Superfici]]...
Getting [[Categoria:Sviluppo di solidi]]...
Getting [[Categoria:Tangenza]]...
Out[2]: 393
###########end ipython output###############
Notice this patch also solves the problem of eventual loops in categories: catlib won't loop.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842905&group_…
Revision: 4628
Author: valhallasw
Date: 2007-12-01 22:28:42 +0000 (Sat, 01 Dec 2007)
Log Message:
-----------
Changed pl settings to the normal (below text, one per line) setting. Patch by chtit_draco
Modified Paths:
--------------
trunk/pywikipedia/families/wikiquote_family.py
Modified: trunk/pywikipedia/families/wikiquote_family.py
===================================================================
--- trunk/pywikipedia/families/wikiquote_family.py 2007-12-01 22:07:30 UTC (rev 4627)
+++ trunk/pywikipedia/families/wikiquote_family.py 2007-12-01 22:28:42 UTC (rev 4628)
@@ -196,14 +196,14 @@
# attop is a list of languages that prefer to have the interwiki
# links at the top of the page.
- self.interwiki_attop = ['pl']
+ self.interwiki_attop = []
# on_one_line is a list of languages that want the interwiki links
# one-after-another on a single line
- self.interwiki_on_one_line = ['pl']
+ self.interwiki_on_one_line = []
# Similar for category
- self.category_attop = ['pl']
+ self.category_attop = []
# List of languages that want the category on_one_line.
self.category_on_one_line = []
Bugs item #1841155, was opened at 2007-11-29 18:12
Message generated for change (Comment added) made by filnik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&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: Filnik (filnik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Page's function, removeImage doesn't work.
Initial Comment:
I've used that function, here: http://it.wikipedia.org/w/index.php?title=Massagno&diff=prev&oldid=12586322 but seems to be a really big bug... some help? :-)
----------------------------------------------------------------------
>Comment By: Filnik (filnik)
Date: 2007-12-01 12:32
Message:
Logged In: YES
user_id=1834469
Originator: YES
Wonderful! Thanks rotemliss :-)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 10:18
Message:
Logged In: YES
user_id=1327030
Originator: NO
Fixed first issue (which isn't actually related to this bug) in r4622, and
the second one (which is this bug) in r4623.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 09:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
The function:
1. Doesn't handle some (or all?) localized namespaces properly.
2. Strips templates when it doesn't find the image. Obviously, this
mustn't happen.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&group_…
Bugs item #1842287, was opened at 2007-12-01 13:03
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&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: Leonardo Gregianin (leogregianin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Captcha doesn't work
Initial Comment:
Traceback below:
>>> Huong dao <<<
Corresponding page is Escotismo
Password for user LeonardoG on wikipedia:pt:
Logging in to wikipedia:pt as LeonardoG
Opening CAPTCHA in your web browser...
Traceback (most recent call last):
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 339, in <module>
featuredWithInterwiki(fromsite, wikipedia.getSite(), template_on_top)
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 297, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 1134, in put
if not self.botMayEdit():
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 882, in botMayEdit
self.site().forceLogin(sysop=True)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 3640, in forceLogin
if loginMan.login(retry = True):
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 222, in login
cookiedata = self.getCookie()
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 163, in getCookie
answer = wikipedia.ui.askForCaptcha(url)
File "C:\pywikipediabot\trunk\pywikipedia\userinterfaces\terminal_interface.py", line 281, in askForCaptcha
webbrowser.open(url)
File "C:\Python25\lib\webbrowser.py", line 55, in open
if browser.open(url, new, autoraise):
File "C:\Python25\lib\webbrowser.py", line 505, in open
os.startfile(url)
WindowsError: [Error 22] Aplicativo nÒo encontrado: u'http://pt.wikipedia.org/w/
index.php?title=Especial:Captcha/image&wpCaptchaId=1093122940'
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 14:27
Message:
Logged In: YES
user_id=1327030
Originator: NO
This doesn't seem to be related to this bug.
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-12-01 14:20
Message:
Logged In: YES
user_id=1136737
Originator: YES
but this url
http://pt.wikipedia.org/w/index.php?title=Especial:Captcha/image&wpCaptchaI…
doesn't exist, browser say: "Internal Error: Requested bogus captcha image"
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 13:11
Message:
Logged In: YES
user_id=1327030
Originator: NO
I guess the error is "Application not found". It seems to be an error in
python or its configuration in your computer. Anyway, now in r4624 the
exception (WindowsError) is caught and a fallback question is shown.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&group_…
Bugs item #1842287, was opened at 2007-12-01 08:03
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&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: Leonardo Gregianin (leogregianin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Captcha doesn't work
Initial Comment:
Traceback below:
>>> Huong dao <<<
Corresponding page is Escotismo
Password for user LeonardoG on wikipedia:pt:
Logging in to wikipedia:pt as LeonardoG
Opening CAPTCHA in your web browser...
Traceback (most recent call last):
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 339, in <module>
featuredWithInterwiki(fromsite, wikipedia.getSite(), template_on_top)
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 297, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 1134, in put
if not self.botMayEdit():
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 882, in botMayEdit
self.site().forceLogin(sysop=True)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 3640, in forceLogin
if loginMan.login(retry = True):
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 222, in login
cookiedata = self.getCookie()
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 163, in getCookie
answer = wikipedia.ui.askForCaptcha(url)
File "C:\pywikipediabot\trunk\pywikipedia\userinterfaces\terminal_interface.py", line 281, in askForCaptcha
webbrowser.open(url)
File "C:\Python25\lib\webbrowser.py", line 55, in open
if browser.open(url, new, autoraise):
File "C:\Python25\lib\webbrowser.py", line 505, in open
os.startfile(url)
WindowsError: [Error 22] Aplicativo nÒo encontrado: u'http://pt.wikipedia.org/w/
index.php?title=Especial:Captcha/image&wpCaptchaId=1093122940'
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-12-01 09:20
Message:
Logged In: YES
user_id=1136737
Originator: YES
but this url
http://pt.wikipedia.org/w/index.php?title=Especial:Captcha/image&wpCaptchaI…
doesn't exist, browser say: "Internal Error: Requested bogus captcha image"
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 08:11
Message:
Logged In: YES
user_id=1327030
Originator: NO
I guess the error is "Application not found". It seems to be an error in
python or its configuration in your computer. Anyway, now in r4624 the
exception (WindowsError) is caught and a fallback question is shown.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&group_…