https://github.com/adamff-dev/food-additives-scraper
https://github.com/adamff-dev/food-additives-scraper
aditivos scraper
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adamff-dev/food-additives-scraper
- Owner: adamff-dev
- Created: 2025-05-15T20:16:32.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-05-16T21:41:39.000Z (12 months ago)
- Last Synced: 2025-05-26T00:14:14.034Z (11 months ago)
- Topics: aditivos, scraper
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Food Additives Scraper
This project is an automated scraper for collecting information about food additives using Selenium and Python from https://www.aditivos-alimentarios.com/. It is designed to obtain the database required for the Android app [aditivos-alimentarios-app](https://github.com/adamff-dev/aditivos-alimentarios-app), which allows users to search for food additives and consult their toxicity. The scraper automatically detects installed browsers, manages WebDrivers, and saves the results to a database.
## Features
- Automatic detection of installed browsers (Chrome, Firefox, Edge, Safari)
- Automatic installation and management of WebDrivers
- Scraping of food additives data
- Saving results to a database
## Requirements
- Python 3.8+
- A supported browser installed (Chrome, Firefox, Edge, Safari)
- Dependencies listed in `requirements.txt`
## Installation
1. Clone this repository:
```sh
git clone https://github.com/adamff-dev/food-additives-scraper.git
cd food-additives-scraper
```
2. Install the dependencies:
```sh
pip install -r requirements.txt
```
## Usage
Run the main script:
```sh
python main.py
```
The script will detect the installed browser, install the required WebDriver, and start scraping food additives data from https://www.aditivos-alimentarios.com/.
## Project Structure
- `main.py`: Main execution script
- `modules/`: Auxiliary modules
- `WebDriverInstaller.py`: WebDriver installer and manager
- `AditivosTools.py`: Tools for scraping and saving data
- `ProgressBar.py`, `SharedTools.py`: Additional utilities
## License
MIT