I use proxy for internet access. I modification login.py some code:
if self.site.hostname() in config.authenticate.keys():
req = urllib2.Request('http://'+self.site.hostname()+pagename,
data)
req.set_proxy('207.142.131.198:80', 'http')
response = urllib2.urlopen(req)
data = response.read()
wikipedia.cj.save(wikipedia.COOKIEFILE)
return "Ok"
else:
conn = httplib.HTTPConnection("207.142.131.198:80")
conn.request("POST",'http://'+self.site.hostname()+pagename,
data, headers)
response = conn.getresponse()
conn.close()
return result:
D:\Python24>python login.py
Checked for running processes. 1 processes currently running, including the
curr
ent process.
Password for user Sz-iwbot on wikipedia:zh:
Logging in to wikipedia:zh as Sz-iwbot
Should be logged in now
But run interwiki.py can't connect wikipedia:
D:\Python24>python interwiki.py 1
Checked for running processes. 1 processes currently running, including the
curr
ent process.
TitleTranslate: 1 was recognized as Number with value 1
Getting 1 pages from wikipedia:zh...
Traceback (most recent call last):
File "D:\Python24\wikipedia.py", line 1367, in run
data = self.getData()
File "D:\Python24\wikipedia.py", line 1530, in getData
conn.endheaders()
File "D:\Python24\lib\httplib.py", line 798, in endheaders
self._send_output()
File "D:\Python24\lib\httplib.py", line 679, in _send_output
self.send(msg)
File "D:\Python24\lib\httplib.py", line 646, in send
self.connect()
File "D:\Python24\lib\httplib.py", line 630, in connect
raise socket.error, msg
error: (10060, 'Operation timed out')
DBG> got network error in GetAll.run. Sleeping for 15 seconds
why?
plese help me!
[[zh:user:shizhao]]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
To all pywikipediabot users:
sourceforge has changed its non-developer CVS services. All people that
are not official developers of pywikipediabot, and have been using
pywikipediabot via the recommended CVS interface, will notice that they
can no longer update their sources. This is because the cvs host name
has changed.
To update again, users will need to get a new, fresh copy of
pywikipediabot from the repository (so called CVSROOT) at
:pserver:anonymous@pywikipediabot.cvs.sourceforge.net:/cvsroot/pywikipediabot
The advantage of the new setup is that the contents of the new server
should normally be delayed (with regard to the developers copy) by about
2 hours only. Sourceforge personnel will be working on eliminating even
that delay. The service should also be more stable.
Please post your upgrade experiences on pywikipediabot-users mail list,
so that others can learn from them.
Rob Hooft
- --
Rob W.W. Hooft || rob(a)hooft.net || http://www.hooft.net/people/rob/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEZXo3H7J/Cv8rb3QRAkEkAJ9HFTYRNQApixFIm69FLhrg4CWruwCcCqDy
j/KuEDx5D+uHT0sqsAq9CIo=
=knBc
-----END PGP SIGNATURE-----
Does interwiki.py no longer support Commons? It doesn't seem to work anymore.
family = 'commons'
mylang = 'commons'
__version__ = '$Id: interwiki.py,v 1.279 2006/03/21 18:25:44 a_engels Exp $'
% python interwiki.py United\ States
Checked for running processes. 2 processes currently running, including the current process.
Getting 1 pages from commons:commons...
NOTE: [[commons:United States]] does not have any interwiki links
======Post-processing [[commons:United States]]======
Updating links on page [[commons:United States]].
No changes needed
PS: Is pywikipediabot-users@ list dead?
--
tsca * Tomasz Sienicki