🤖 Système d'extraction automatique de données de jeux vidéo avec déploiement sur AlwaysData via GitHub Actions
- 🎯 Extraction automatique depuis l'API RAWG.io
- 💰 Scraping des prix depuis DLCompare
- 🗄️ Stockage MySQL sur AlwaysData
- ⏰ Planification automatique via GitHub Actions
- 📊 Monitoring complet avec logs et notifications
Dans Settings > Secrets and variables > Actions :
ALWAYSDATA_HOST=ssh-anne-alwaysdata.net
ALWAYSDATA_USERNAME=anne
ALWAYSDATA_SSH_KEY=votre-cle-ssh-privee
DB_HOST=mysql-anne.alwaysdata.net
DB_USER=anne
DB_PASSWORD=Vicky2@18
DB_NAME=anne_games_db
RAWG_API_KEY=a596903618f14aeeb1fcbbb790180dd5
Le déploiement se fait automatiquement ! 🎉
graph TB
A[GitHub Actions] -->|Deploy| B[AlwaysData Server]
A -->|Schedule| C[Extraction Jobs]
C --> D[RAWG API]
C --> E[DLCompare Scraper]
D -->|Games Data| F[MySQL Database]
E -->|Prices Data| F
F --> G[Statistics & Reports]
C --> H[Notifications]
- 06:00 & 18:00 : Extraction de 500 nouveaux jeux
- 12:00 : Scraping de prix
- 02:00 dimanche : Maintenance
Via GitHub Actions Interface :
Actions > Scheduled Data Extraction > Run workflow
game-data-extractor/
├── 📁 .github/workflows/ # GitHub Actions (CI/CD)
├── 📁 src/ # Code source principal
│ ├── 📁 extractor/ # Modules d'extraction
│ ├── 📁 automation/ # Planification et notifications
│ └── 📁 utils/ # Utilitaires (config, logging)
├── 📁 scripts/ # Scripts d'exécution
├── 📁 config/ # Configuration JSON
├── 📁 tests/ # Tests unitaires et intégration
└── 📁 docs/ # Documentation
# Voir les logs en direct
tail -f ~/game-extraction/logs/extraction.log
# Statistiques rapides
python3 scripts/run_extraction.py --status- Fork le projet
- Créer une branche pour votre fonctionnalité
- Commiter vos changements
- Tester avec
pytest - Soumettre une Pull Request
Ce projet est sous licence MIT.
Développé avec ❤️ pour la communauté des développeurs et gamers