Basically just me messing with web scraping using BeautifulSoup
Finding the best deal on the web online section(網購) of Price.com.hk of your desired product, saving you time from going through all pages on the website just to look for the cheapest offering. Soldout items are all ignored as well. You can Hold Cmd (macOS)/Ctrl (Windows)
and click on each result inside the terminal, the browser will be opened and redirect to the item's page on Price.com.hk.
The result is sorted by the price, and also saved to a separate .txt file.
- Clone the repository to your local machine:
git clone https://github.com/[YOUR-USERNAME]/best-price-finder.git
- Navigate to the project directory:
cd best-price-finder
- Install the required dependencies using
pip
and therequirements.txt
file:pip install -r requirements.txt
- Run the
price.py
script and follow the prompts:python price.py
Note: If you encounter any issues with installing the dependencies, make sure you have pip
installed and that it is up-to-date by running pip install --upgrade pip
.