Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (8 sloc) 0.311 kB
from scrapyd.utils import get_project_list
from spiderqueue import Psycopg2SpiderQueue
def get_spider_queues(config):
queues = {}
for project in get_project_list(config):
table = 'scrapy_%s_queue' % project
queues[project] = Psycopg2SpiderQueue(config, table=table)
return queues
Jump to Line
Something went wrong with that request. Please try again.