Skip to content

A python web scraping script crafted to automate data extraction from the MPshopping cart.

License

Notifications You must be signed in to change notification settings

addreeh/MPscraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPscrapper

A python web scraping script crafted to automate data extraction from the MYPROTEIN shopping cart. If you want to receive alerts, you can join this Telegram channel where the price of the products is checked daily. This is how the alerts channel looks like.

image

Installation

To use the script you need to have installed Firefox and Python. Use the package manager pip to install requirements.

pip install -r requirements.txt

This script is ready to work and store data in a MongoDB database. If you want to use the same system, you will need to install MongoDB. If you only want to display the current prices of the products, you can use NoDB script.

Usage

The command to use Python will depend on the operating system; typically, in Ubuntu, python3 is used, and in Windows, python. However, it will all depend on your Python installation on the system.

To run the script with the MongoDB database.

python3 mp.py

To run the script without the MongoDB database.

python3 mpNoDB.py

Customize It

In the script, only one product is considered, which are the one added to the cart, the IMPACT WHEY PROTEIN 2,5KG. If you want the script to include more products, you will need to add them to your shopping cart and insert a new product into the script.

As you can see, each product must have specific information. image

To obtain these data, you will need to access the browser's developer tool (F12). image

Once you have obtained the data, you simply need to insert a new product into the script.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A python web scraping script crafted to automate data extraction from the MPshopping cart.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages