E-Shop Scrapper PRO is a Python script that scrapes product data from an e-commerce website and exports it to a CSV file. It utilizes web scraping techniques to extract information such as product names, categories, prices, descriptions, and images. The script is designed to be highly customizable and can be adapted to scrape data from different e-commerce websites.
- Scrapes product data from an e-commerce website
- Extracts product names, categories, prices, descriptions, and images
- Generates a random date and time for each scraped product
- Supports customization for different e-commerce websites
- Writes the scraped data to a CSV file
- Displays a progress bar during the scraping process
Before using E-Shop Scrapper PRO, make sure you have the following knowledge and tools:
- Basic understanding of Python programming language
- Familiarity with PHP, HTML and CSS
- Familiar with how Woocommerce, and Wordpress works
- Python 3 installed on your system (Download Python)
-
Install Python: If Python is not already installed on your system, follow these steps:
- Visit the official Python website at https://www.python.org.
- Go to the Downloads section and select the appropriate Python version for your operating system (Windows, macOS, or Linux).
- Download the installer and run it.
- Follow the installation wizard instructions and make sure to check the box that says "Add Python to PATH" during the installation process.
- Once the installation is complete, open a command prompt (Windows) or terminal (macOS/Linux) and type
python --version
to verify that Python is installed correctly. You should see the version number of Python printed in the console.
-
Verify Python installation: Open a command prompt or terminal and run
python --version
to ensure that Python is installed and accessible from the command line. You should see the version number of Python displayed.
Now that Python is installed, you can proceed with setting up the project and installing the dependencies as outlined in the rest of the README file.
There are two ways to install E-Shop Scrapper PRO: using a release package or by forking and cloning the repository.
-
Go to the Releases page of the GitHub repository.
-
Download the latest release package (
E-Shop-Scrapper-PRO.zip
). -
Extract the contents of the ZIP file to your desired location.
-
Open a command prompt or terminal and navigate to the extracted directory.
-
Run the following command to install the required dependencies:
pip install -r requirements.txt
-
Fork the E-Shop Scrapper PRO repository to your GitHub account.
-
Clone the forked repository to your local machine using the following command:
git clone https://github.com/bfas237/E-Shop-Scrapper-PRO.git
-
Navigate to the cloned directory:
cd EScraperPRO
-
Run the following command to install the required dependencies:
pip install -r requirements.txt
- requests
- beautifulsoup4
- pandas
- tqdm
- tabulate
- aiofiles
The repository contains the following files:
EScraperPRO.py
: The main Python script for scraping the e-commerce website.requirements.txt
: A file specifying the required Python packages.utils/ua.txt
: A file that contains Predefined and trusted UserAgents.EScraperPRO.config
: A required Config file that is required for the proper functioning of the scrapper.secure.config
: A required Secure Config file that is required for the proper functioning of the scrapper.LICENSE
: The license file for the project.
-
Open your command prompt
-
Run the command:
python EScraperPRO.py http://shopurl.com
-
Replace the Url with that of your shop. Wait for the scraping process to complete. The progress bar will indicate the progress.
-
After completion, the CSV file
rcfminibikes.csv
will be generated in the same directory. -
Open the CSV file to view the scraped data.
Contributions are welcome! Here's how you can contribute to the E-Shop Scrapper PRO project:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m 'Add your feature'
- Push the changes to your forked repository:
git push origin feature/your-feature
- Open a pull request on the main repository.
Please make sure to follow the code style and provide clear commit messages.
If you encounter any issues or have suggestions for improvements, please create a new issue on the GitHub repository.
This project is licensed under the MIT License.
For more information or questions, you can reach us on:
- Website: about.me/bfaschat
- Twitter: @bfaschat
Thank you for using E-Shop Scrapper PRO. Happy scraping!