by kirankoduru

kirankoduru / arachne

A flask API for running your scrapy spiders

125 Stars 36 Forks Last release: Not found Other 81 Commits 6 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:



.. image:: :target:

.. image:: :target:

Arachne provides a wrapper around your scrapy

object to run them through a flask app. All you have to do is customize
in the settings file.


You can install Arachne from pip

pip install Arachne

Sample settings

This is sample settings file for spiders in your project. The settings file should be called for Arachne to find it and looks like this::

# file
        'endpoint': 'dmoz',
        'location': 'spiders.DmozSpider',
        'spider': 'DmozSpider'    


It looks very similar to a flask app but since Scrapy depends on the python twisted package, we need to run our flask app with twisted::

from twisted.web.wsgi import WSGIResource
from twisted.web.server import Site
from twisted.internet import reactor
from arachne import Arachne

app = Arachne(name)

resource = WSGIResource(reactor, reactor.getThreadPool(), app) site = Site(resource) reactor.listenTCP(8080, site)

if name == 'main':

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.