-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from Lukas0907/orf
ORF spider and more style checks
- Loading branch information
Showing
15 changed files
with
318 additions
and
15 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[flake8] | ||
max-line-length = 89 | ||
max-line-length = 88 | ||
ignore = E203,W503 |
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,6 +1,7 @@ | ||
[settings] | ||
line_length = 88 | ||
known_first_party = feeds | ||
multi_line_output = 3 | ||
combine_as_imports = true | ||
include_trailing_comma = true | ||
include_trailing_comma = True | ||
force_grid_wrap = 0 | ||
line_length = 88 | ||
not_skip = __init__.py |
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,40 @@ | ||
.. _spider_orf.at: | ||
|
||
orf.at | ||
------ | ||
Newest articles from `ORF ON <http://www.orf.at>`_. | ||
|
||
Configuration | ||
~~~~~~~~~~~~~ | ||
Add ``orf.at`` to the list of spiders: | ||
|
||
.. code-block:: ini | ||
# List of spiders to run by default, one per line. | ||
spiders = | ||
orf.at | ||
orf.at supports different channels via the ``channels`` parameter (one per line). If no | ||
channel is given, ``news`` is used. | ||
|
||
.. code-block:: ini | ||
[orf.at] | ||
ressorts = | ||
burgenland | ||
fm4 | ||
help | ||
kaernten | ||
news | ||
noe | ||
oe3 | ||
oesterreich | ||
ooe | ||
religion | ||
salzburg | ||
science | ||
sport | ||
steiermark | ||
tirol | ||
vorarlberg | ||
wien |
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
|
||
class SpiderSettings: | ||
|
||
@classmethod | ||
def from_crawler(cls, crawler): | ||
ext = cls() | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
|
||
class FeedsHttpErrorMiddleware: | ||
|
||
@classmethod | ||
def from_crawler(cls, crawler): | ||
return cls() | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
|
||
|
||
class FeedsSpider(Spider): | ||
|
||
def generate_feed_header( | ||
self, | ||
title=None, | ||
|
Oops, something went wrong.