J'ai un ensemble d'araignées Scrapy. Ils doivent être exécutés quotidiennement à partir d'une application de bureau. Quelle est la manière la plus simple (du point de vue de l'utilisateur) de l'installer et de l'exécuter sur une autre machine Windows?Comment intégrer un script Scrapy dans une application autonome?
1
A
Répondre
0
Le courir les araignées moyen le plus simple est d'écrire un script en python pour eux, je suppose ...
Si vous utilisez Windows Server, vous pouvez même programmer le COMAND que vous utilisez (scrapy crawl yoursprider).
0
Créez un script (par exemple run_spider.py) qui exécute scrapy crawl <spider_name>
en tant que commande système.
run_spider.py
from os import system
output_file_name = 'results.csv'
system('scrapy crawl myspider -o ' + output_file_name + ' -t csv')
Ensuite, ce script se nourrissent à PyInstaller:
pyinstaller run_spider.py
Questions connexes
- 1. Comment intégrer une application GWT dans un autre Web-Framework?
- 2. Comment intégrer des données dans une application
- 3. intégrer YAF autonome dans DNN
- 4. Intégrer un script PHP et une application IPhone?
- 5. Intégrer une boucle d'événement Scrapy/Twisted dans PyQt4 Boucle principale
- 6. comment intégrer le module développé dans une application winform séparée?
- 7. Maven: Comment générer une application autonome?
- 8. Django: Comment intégrer une application dans une autre application
- 9. Comment intégrer paypal dans une application?
- 10. Comment intégrer dynamiquement une application dans une autre application?
- 11. comment empaqueter une application xulrunner autonome
- 12. Comment intégrer Webmachine dans une application Erlang?
- 13. Comment puis-je amorcer Symfony dans un script autonome?
- 14. intégrer l'air dans une application mobile flex?
- 15. Comment intégrer une application iPhone dans une autre application
- 16. Comment intégrer une application console dans une application Winforms
- 17. Comment intégrer iContact dans une application Android?
- 18. Comment intégrer une vidéo YouTube dans une application facebook iframe?
- 19. Comment puis-je compiler un script Ruby autonome dans un exécutable macruby compilé AOT autonome?
- 20. JBoss Microcontainer + AOP dans une application autonome
- 21. Comment intégrer un AppleScript dans un script Python?
- 22. application autonome en python
- 23. Comment intégrer un document Office dans une application Metro?
- 24. Comment intégrer un système de commentaire dans une application ios?
- 25. Comment intégrer un interpréteur Lisp commun dans une application graphique
- 26. Comment intégrer un formulaire MDI dans une autre application?
- 27. Comment intégrer un calendrier dans une application Android?
- 28. Comment intégrer un lecteur flash dans une application GTK?
- 29. comment intégrer une application flexible dans un environnement de rails
- 30. QT Comment intégrer une application dans un widget QT