|Edward Betts 55bb3697b6|
Newegg hard drive price tracker
The Newegg hard drive price tracker is a Python tool designed to fetch the prices of various types of hard drives from Newegg's online store. It sorts and displays these drives based on their price per terabyte, making it easier for users to find the most cost-effective storage solutions. The output is available at the Price per TB page.
- Python 3.x
Files in the Repository
crawl.py: The main script that crawls Newegg's product listings and extracts relevant data.
README.md: This file, which provides an overview and instructions for the tool.
Clone the repository:
git clone https://git.4angle.com/edward/newegg-hdd.git
Change into the project directory:
Install the required Python packages:
pip install -r requirements.txt
You can set up a cron job to automate the data crawling process. The cron job will execute the
crawl.py script daily at 08:50. Below is the crontab configuration:
50 08 * * * chronic ~/src/newegg-hdd/crawl.py
crawl.py script manually:
After the script runs, you can view the sorted listings at the Price per TB page.
The tool performs the following operations:
- Crawls the Newegg product listings based on predefined filter parameters.
- Downloads and saves HTML pages for later parsing.
- Extracts relevant details, such as price, size, and product number.
- Calculates the price per terabyte for each hard drive.
- Outputs a sorted list of hard drives based on their price per terabyte.
This tool is released under the MIT License.
If you find any bugs or have suggestions for improvements, please open an issue on the repository.
For any queries or issues, please visit the repository at https://git.4angle.com/edward/newegg-hdd.