Reading:
http://meta.wikimedia.org/wiki/Pywikipediabot/imageharvest.py
Note: the real site name I am using is is replaced in the examples. The site
that I am using is accessible at the URL I am using and the images are
available to the public (no login required)
[root@mustang pywikipedia]# python imageharvest.py *-URL:*
http://www.example.org/wiki/
Using the "-URL:" prefix generates a "IOError: [Errno url error] unknown
url
type: '-url'" error.
Omitting the "-URL:" prefix allows the process to start, but adds a
redundant */wiki/* to the URL:
[root@mustang pywikipedia]# python imageharvest.py
http://www.example.org/wiki/
What text should be added at the end of the description of each image from
this url?
example.org
Include image
http://www.example.org/wiki/*/wiki/i*mage:router.gif? ([y]es,
[N]o, [s]top) y
Give the description of this image: Router
Reading file
http://www.example.org/wiki/*/wiki/*image:router.gif
Couldn't download the image: the requested URL was not found on this server.
Include image
http://www.example.org/wiki/*/wiki/*image:topology.gif?
([y]es, [N]o, [s]top) s
[root@mustang pywikipedia]#
Omitting the /wiki/ in the URL allows the process to start, but it stops
right after the description is entered:
[root@mustang pywikipedia]# python imageharvest.py -v
http://www.example.org/
Pywikipediabot [http] trunk/pywikipedia (r7294, 2009/09/24, 12:37:35)
Python 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
What text should be added at the end of the description of each image from
this url?
example.org
[root@mustang pywikipedia]#
---Robert