-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contribution instructions, IS paragraphed (#52)
* Bump version * Use paragraph level join for IS * Add finscraper.gif * Added contribution instructions * Remove useless imports * Add setup.py classifiers
- Loading branch information
Showing
9 changed files
with
47 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Contributing | ||
|
||
When websites change, spiders tend to break. I can't make a promise to keep this | ||
repository up-to-date all by myself, so pull requests are more than welcome! | ||
|
||
## Adding a new spider | ||
|
||
1. Create a branch for the spider, e.g. ``mtvarticle`` | ||
|
||
2. Add the spider name in [pytest.ini](https://github.com/jmyrberg/finscraper/blob/master/pytest.ini) and [.travis.yml](https://github.com/jmyrberg/finscraper/blob/master/.travis.yml) | ||
|
||
3. Add the spider in [tests/test_spiders.py](https://github.com/jmyrberg/finscraper/blob/master/tests/test_spiders.py) similar to others | ||
|
||
4. Add the spider API in [finscraper/spiders.py](https://github.com/jmyrberg/finscraper/blob/master/finscraper/spiders.py) | ||
|
||
5. Write the Scrapy spider under [finscraper/scrapy_spiders](https://github.com/jmyrberg/finscraper/blob/master/finscraper/scrapy_spiders) by naming the spider exactly with the spider name, e.g. ``mtvarticle.py`` - use of flake8 linting and [Google style docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html) is recommended | ||
|
||
6. Make sure the spider passes all non-benchmark tests within [test_spiders.py](https://github.com/jmyrberg/finscraper/blob/master/tests/test_spiders.py) | ||
|
||
7. Push your branch into Github and make a pull request against master | ||
|
||
8. *(OPTIONAL)*: Bump up the version in [VERSION](https://github.com/jmyrberg/finscraper/blob/master/VERSION) and [re-build the documentation](https://github.com/jmyrberg/finscraper/blob/master/scripts/build-documentation.sh) | ||
|
||
|
||
## Updating an existing spider | ||
|
||
Steps 5. - 8. above. |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0a | ||
0.1.0b |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
.. mdinclude:: ../../CONTRIBUTING.md |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
installation | ||
spiders | ||
usage | ||
contributing | ||
|
||
|
||
.. toctree:: | ||
|
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
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