Hi, I have written a short program that will scrape a given
website for img src that have their attribute tag with id="marked".
The program works, but I am not quiet sure which attributes to
Here is the code.
import urllib from BeautifulSoup import * class ImgScrape(object): def __init__(self): self.count = 0 self.__results =  def scrape(self, url): self.__html = urllib.urlopen(url) self.__soup = BeautifulSoup(self.__html) for img in self.__soup.findAll(id="marked"): self.count += 1 self.__results.append(img['src']) return self.__results