This Python script scrapes pickle products data from the Paytm Mall website. It retrieves information such as pickle name and price.
The script utilizes BeautifulSoup and requests libraries to fetch and parse data from the specified Paytm Mall URL (https://paytmmall.com/fmcg-sauces-pickles-glpid-101471?page=1&latitude=12.8682381&longitude=77.7129198
). It extracts details of each pickle product listed on the webpage and prints out processed data.
The script performs the following steps:
-
Fetching Data: It sends a request to the Paytm Mall webpage containing pickle products.
-
Parsing HTML: It uses BeautifulSoup to parse the HTML content of the webpage.
-
Extracting Pickle Details: It locates the relevant HTML elements containing pickle names and prices.
-
Processing Data: It processes each pickle name to remove unnecessary text and formats the data for display.
-
Displaying Data: It prints the processed pickle names.
To use this script:
-
Clone the repository or download the
pickledb.py
file. -
Make sure you have Python installed on your system.
-
Install the required libraries using pip:
-
The script will print the processed pickle names extracted from the Paytm Mall webpage.
Here is an example of the output produced by the script:
MTR Mixed Pickle
Maggi Hot & Sweet Tomato Chilli Sauce
Gits Instant Mix Rava Dosa Mix
Thank you for using the Paytm Mall Pickles Scraper. Enjoy exploring pickle products on Paytm Mall!