Package pywikipedia :: Module imageharvest
[show private | hide private]
[frames | no frames]

Module pywikipedia.imageharvest

Bot for getting multiple images from an external site. It takes a URL as an argument and finds all images (and other files specified by the extensions in 'fileformats') that URL is referring to, asking whether to upload them. If further arguments are given, they are considered to be the text that is common to the descriptions.

A second use is to get a number of images that have URLs only differing in numbers. To do this, use the command line option "-pattern", and give the URL with the variable part replaced by '$' (if that character occurs in the URL itself, you will have to change the bot code, my apologies).

Other options: -shown Choose images shown on the page as well as linked from it -justshown Choose _only_ images shown on the page, not those linked
Function Summary
  get_imagelinks(url)
  main(give_url, image_url)

Imported modules:
pywikipedia.lib_images, os, re, sys, pywikipedia.wikipedia
Imported variables:
fileformats, image_url, shown, url
Generated by Epydoc 2.1 on Sun Jul 03 17:07:35 2005 http://epydoc.sf.net