- Configuration file
- Scrapyd searches for configuration files in the following locations, and parses them in order with the latest one taking more priority:
- /etc/scrapyd/scrapyd.conf
- (Unix)
- c:\scrapyd\scrapyd.conf
- (Windows)
- /etc/scrapyd/conf.d/*
- (in alphabetical order, Unix)
- scrapyd.conf
- ~/.scrapyd.conf (users home directory)
- Example configuration file
- [scrapyd]
- eggs_dir = eggs
- logs_dir = logs
- items_dir =
- jobs_to_keep = 5
- dbs_dir = dbs
- max_proc = 0
- max_proc_per_cpu = 4
- finished_to_keep = 100
- poll_interval = 5.0
- bind_address = 127.0.0.1
- http_port = 6800
- debug = off
- runner = scrapyd.runner
- application = scrapyd.App.application
- launcher = scrapyd.launcher.Launcher
- webroot = scrapyd.website.Root
- [services]
- schedule.JSON = scrapyd.webservice.Schedule
- cancel.JSON = scrapyd.webservice.Cancel
- addversion.JSON = scrapyd.webservice.AddVersion
- listprojects.JSON = scrapyd.webservice.ListProjects
- listversions.JSON = scrapyd.webservice.ListVersions
- listspiders.JSON = scrapyd.webservice.ListSpiders
- delproject.JSON = scrapyd.webservice.DeleteProject
- delversion.JSON = scrapyd.webservice.DeleteVersion
- listjobs.JSON = scrapyd.webservice.ListJobs
- daemonstatus.JSON = scrapyd.webservice.DaemonStatus
来源: http://www.bubuko.com/infodetail-3396014.html