API
- web_scraper.main.scrape(product_name, company_name)
This function takes in the product name and company name and returns the data in JSON format.
- Parameters:
product_name (str) – The name of the product to be scraped
company_name (str) – The name of the company to be scraped
- Returns:
The data in JSON format
- Return type:
str
- web_scraper.main.scrape_ebay(product_name)
This function scrapes the eBay website for the product name and returns the data in JSON format.
- Parameters:
product_name (str) – The name of the product to be scraped
- Returns:
The data in JSON format
- Return type:
str
- web_scraper.main.scrape_walmart(product_name)
This function scrapes the Walmart website for the product name and returns the data in JSON format.
- Parameters:
product_name (str) – The name of the product to be scraped
- Returns:
The data in JSON format
- Return type:
str
- web_scraper.main.scrape_amazon(product_name)
This function scrapes the Amazon website for the product name and returns the data in JSON format.
- Parameters:
product_name (str) – The name of the product to be scraped
- Returns:
The data in JSON format
- Return type:
str
- web_scraper.main.scrape_all(product_name)
This function takes in the product name and scrapes all available websites.
- Parameters:
product_name (str) – The name of the product to be scraped
- Returns:
The data in JSON format
- Return type:
str