Skip to content
A Flake8 plugin to catch common issues on Scrapy spiders
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
finders
tests
.coveragerc
.gitignore
LICENSE
README.md
flake8_scrapy.py
requirements-dev.txt
requirements.txt
setup.py
tox.ini

README.md

scrapy-flake8

A Flake8 plugin to catch common issues on Scrapy spiders.

Issue types

Code Meaning
SCP01 There are URLs in start_urls whose netloc is not in allowed_domains
SCP02 There are URLs in allowed_domains
SCP03 Usage of urljoin(response.url, '/foo') instead of response.urljoin('/foo')
SCP04 Usage of Selector(response) in callback

This is a work in progress, so new issues will be added to this list.

You can’t perform that action at this time.