Food Scraper
Create an instance of the PyScrappy library to interact
with the class FoodScraper:
Helps in scrapping data from food delivery websites
1. Swiggy2. Zomato
#
Typeclass
#
NoteCreate an object of this class to procced further.
obj = PyScrappy.WikipediaScrapper()
#
Swiggyswiggy_scrapper()
#Helps in scraping data from the Swiggy webpage ('Name', 'Cuisine', 'Price', 'Ratings').
#
Return typepandas.DataFrame
#
Parameterscity_name
: Enter the name of the desired city, from where you want to scrape the resturant data of.
Type: strn_pages
: Enter the number of pages that you want to scrape.
Type: int#
NoteBoth the arguments are a compulsion. If
n_pages == 0:
A prompt will ask you to enter a valid page number and the scrapper will re-run.obj = PyScrappy()obj.FoodScraper.swiggy_scrapper(city_name, n_pages)
#
Zomatozomato_scrapper()
#Helps in scraping Snapdeal data ('Name', 'Cuisine', 'Price', 'Ratings', 'Delivery Time', 'Review Counts').
#
Return typepandas.DataFrame
#
Parametersproduct_name
: Enter the name of the desired city, from where you want to scrape the resturant data of.
Type: strn_pages
: Enter the number of pages that you want to scrape.
Type: int#
NoteBoth the arguments are a compulsion. If
n_pages == 0:
A prompt will ask you to enter a valid page number and the scrapper will re-run.obj = PyScrappy()obj.FoodScrapper.zomato_scrapper(product_name, n_pages)