clemfromspace/scrapy-puppeteer

View on GitHub
scrapy_puppeteer/cli.py

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import asyncio
import sys
from twisted.internet import asyncioreactor

# Need to install the asyncio reactor before importing Scrapy (?)
# Maybe there is a cleaner way to to it?
asyncioreactor.install(asyncio.get_event_loop())

from scrapy.cmdline import execute


def __main__():
    execute(argv=sys.argv)