This tool automates the process of scraping product information from major e-commerce marketplaces (Amazon Brazil and Mercado Livre). It helps users compare product prices and details across these platforms based on specific search criteria.
- Scrapes product information from:
- Amazon Brazil
- Mercado Livre
- Automated login functionality
- Product matching based on codes and names
- Price comparison against reference prices
- Automated screenshot capture of product pages
- Results export to Excel spreadsheet
- Python 3.x
- Selenium WebDriver
- Chrome browser
- Required Python packages:
- selenium
- openpyxl
marketplace-scraping/
├── Amazon/
│ ├── amazon.py # Amazon scraping script
│ ├── func.py # Helper functions
│ └── run.bat # Batch file to run Amazon scraper
├── Mercado_livre/
│ ├── mercado.py # Mercado Livre scraping script
│ ├── func.py # Helper functions
│ └── run.bat # Batch file to run Mercado Livre scraper
- Install Python 3.x if not already installed
- Install required packages:
pip install selenium openpyxl - Install Chrome WebDriver and ensure it's in your system PATH
- Prepare your input Excel file with the following columns:
- Site name
- Password
- Piece code
- Product name
- Reference price (R$)
- Navigate to the Amazon directory
- Place your input file as
entrada.xlsxin the directory - Run the script:
or double-click
python amazon.pyrun.bat
- Navigate to the Mercado_livre directory
- Place your input file as
input.xlsxin the directory - Run the script:
or double-click
python mercado.pyrun.bat
The script generates:
- An Excel file (
resultado.xlsxfor Amazon,result.xlsxfor Mercado Livre) containing:- Site name
- Piece code
- Product name
- Reference price
- Product description
- Actual price
- Brand
- Seller information
- Delivery information (Amazon only)
- Product URL
- Screenshot filename
- Screenshots of product pages in a
captura de tela(Amazon) orscreenshot(Mercado Livre) directory
- The tool requires manual intervention to bypass CAPTCHA/security checks when logging in
- Price comparison is automated to only capture products below the reference price
- Screenshots are automatically saved for product verification
- The script handles various error cases and continues execution even if some products are not found
- Requires manual CAPTCHA solving
- Subject to website changes and anti-bot measures
- Requires stable internet connection
- May need adjustments based on regional settings and marketplace variations
This tool is for educational purposes only. Please ensure compliance with the terms of service of the respective marketplaces when using this tool.