BestBuyScraper module
- class BestBuyScraper.BestBuyScraper(url)
Bases:
objectThis is the Scraper for BestBuy. Takes in product url as input upon object creation. Method ‘job’ prints progress while the method ‘check_stock’ obtains stock info and a string indicating cost of the product.- check_stock(url)
Obtains stock information from the given url.
- Parameters
url – URL of the product
- Returns
a string indicating the stock information and a string indicating cost of the product
- job()
Prints the progress, and delegates the task to ‘check_stock’.
- Returns
a string indicating the stock information and a string indicating cost of the product