Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Jan 20, 2022
1 parent 888e3af commit 9326056
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
21 changes: 0 additions & 21 deletions kingfisher_scrapy/base_spider.py

This file was deleted.

1 change: 1 addition & 0 deletions kingfisher_scrapy/base_spiders/base_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

browser_user_agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' # noqa: E501


class BaseSpider(scrapy.Spider):
"""
With respect to the data's source:
Expand Down
3 changes: 2 additions & 1 deletion kingfisher_scrapy/base_spiders/index_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class IndexSpider(SimpleSpider):
query string parameters. The spider then yields a request for each offset/page.
#. If the ``page`` query string parameter is zero-indexed, set ``start_page = 0``.
#. Set ``formatter`` to set the file name like in :meth:`~kingfisher_scrapy.base_spiders.base_spider.BaseSpider.build_request`.
#. Set ``formatter`` to set the file name like in
:meth:`~kingfisher_scrapy.base_spiders.base_spider.BaseSpider.build_request`.
If ``total_pages_pointer`` or ``use_page = True``, it defaults to ``parameters(<param_page>)``. Otherwise, if
``count_pointer`` is set and ``use_page = False``, it defaults to ``parameters(<param_offset>)``.
#. Write a ``start_requests`` method to yield the initial URL. The request's ``callback`` parameter should be set
Expand Down

0 comments on commit 9326056

Please sign in to comment.