Welcome to the documentation for the Car Scraper project! This project is an application built in Python using the PyQT5 library to create a Graphical User Interface (GUI) for scraping a cars website and extracting details in the form of a JSON file. This documentation will provide an overview of the project structure, installation instructions, and usage guidelines.
Take a look at the demo image below:
This image provides a visual representation of the Car Scraper application in action. Please note that it is for illustrative purposes and doesn't contain interactive elements like the actual application. To experience the full functionality, please follow the installation and usage instructions mentioned earlier.
Here's an overview of the project's file structure:
README.md
: The main file you're currently reading, providing project documentation.requirements.txt
: A text file listing the required Python libraries and their versions.docs/
: A directory containing additional documentation files, if any.app/
: The heart of the project, containing the application code.main.py
: The entry point of the application that initializes the GUI.scraper.py
: The module responsible for scraping the cars website and generating the JSON file.gui.py
: The module implementing the GUI using PyQT5.
tests/
: A directory containing unit tests for the application.test_main.py
: Test cases for themain.py
module.test_scraper.py
: Test cases for thescraper.py
module.
images/
: A directory holding image files related to the project.
To set up the Car Scraper project on your machine, please follow these steps:
- Clone the repository from GitHub:
git clone https://github.com/your-username/car-scraper.git
- Navigate to the project directory:
cd car-scraper
- Install the required dependencies using pip:
pip install -r requirements.txt
To use the Car Scraper application, follow these steps:
- Make sure you have completed the installation steps mentioned above.
- Open a terminal or command prompt.
- Navigate to the project directory:
cd car-scraper/app
- Run the main.py file:
python main.py
- The Car Scraper GUI will appear, allowing you to interact with the application.
- Enter the website URL of the cars you want to scrape.
- Click the "Scrape" button to start the scraping process.
- Once the scraping is complete, you will be prompted to choose a location to save the generated JSON file.
- Select the desired location and click "Save."
- Congratulations! You have successfully scraped the cars website and saved the details in a JSON file.
We welcome contributions to enhance the Car Scraper project! If you'd like to contribute, please follow these steps:
- Fork the repository on GitHub.
- Make the necessary changes and improvements.
- Test your changes thoroughly.
- Submit a pull request detailing the changes you made.
We appreciate your contributions and efforts to make the Car Scraper even better! 😊
If you have any feedback, suggestions, or need support, please feel free to reach out to us. You can contact our team at [email protected]. We are here to assist you and make your experience with the Car Scraper project as smooth as possible.
Thank you for choosing the Car Scraper project! We hope you find it useful for scraping cars websites and extracting details effortlessly. Happy scraping! 🚗