-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 347-add_docstrings
# Conflicts: # kingfisher_scrapy/spiders/armenia.py # kingfisher_scrapy/spiders/australia_nsw.py # kingfisher_scrapy/spiders/honduras_portal_records.py # kingfisher_scrapy/spiders/honduras_portal_releases.py # kingfisher_scrapy/spiders/kenya_makueni.py # kingfisher_scrapy/spiders/nepal_dhangadhi.py # kingfisher_scrapy/spiders/nepal_portal.py # kingfisher_scrapy/spiders/nigeria_portal.py # kingfisher_scrapy/spiders/uganda_releases.py
- Loading branch information
Showing
88 changed files
with
1,351 additions
and
1,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ Base Spider | |
.. automodule:: kingfisher_scrapy.base_spider | ||
:members: | ||
:undoc-members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ Exceptions | |
.. automodule:: kingfisher_scrapy.exceptions | ||
:members: | ||
:undoc-members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extensions | ||
========== | ||
|
||
.. automodule:: kingfisher_scrapy.extensions | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ API Reference | |
.. toctree:: | ||
|
||
base_spider.rst | ||
extensions.rst | ||
util.rst | ||
exceptions.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Utilities | ||
========= | ||
|
||
.. automodule:: kingfisher_scrapy.util | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Integrate with Kingfisher Process | ||
================================= | ||
|
||
Besides storing the scraped data on disk, you can also send them to an instance of `Kingfisher Process <https://kingfisher-process.readthedocs.io/>`_ for processing. | ||
|
||
To do that, you need to deploy an instance of Kingfisher Process, including its `web app <https://kingfisher-process.readthedocs.io/en/latest/web.html#web-app>`__. Then, set the following either as environment variables or as Scrapy settings in ``kingfisher_scrapy.settings.py``: | ||
|
||
``KINGFISHER_API_URI`` | ||
The URL from which Kingfisher Process' `web app <https://kingfisher-process.readthedocs.io/en/latest/web.html#web-app>`_ is served. Do not include a trailing slash. | ||
``KINGFISHER_API_KEY`` | ||
One of the API keys in Kingfisher Process' `API_KEYS <https://kingfisher-process.readthedocs.io/en/latest/config.html#web-api>`__ setting. | ||
|
||
For example, set the environment variables, then run ``scrapy crawl`` commands: | ||
|
||
.. code-block:: bash | ||
export KINGFISHER_API_URI='http://127.0.0.1:5000' | ||
export KINGFISHER_API_KEY=1234 | ||
scrapy crawl my_spider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.