Skip to content

Commit

Permalink
Explicitly set callback function in XMLFeedSpider spiders
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas0907 committed Aug 25, 2021
1 parent 207193c commit f291b0d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions feeds/spiders/arstechnica_com.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def start_requests(self):
for channel in channels:
yield scrapy.Request(
f"http://feeds.{self.name}/arstechnica/{channel}",
self._parse,
meta={"path": channel, "dont_cache": True},
)

Expand Down
1 change: 1 addition & 0 deletions feeds/spiders/ft_com.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def start_requests(self):
path = ressort
yield scrapy.Request(
f"https://www.{self.name}/{path}?format=rss",
self._parse,
meta={"dont_cache": True, "ressort": ressort},
)

Expand Down
1 change: 1 addition & 0 deletions feeds/spiders/nachrichten_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def start_requests(self):
for ressort in self._ressorts:
yield scrapy.Request(
f"https://www.{self.name}/storage/rss/rss/{ressort}.xml",
self._parse,
meta={"ressort": ressort, "dont_cache": True},
)

Expand Down
1 change: 1 addition & 0 deletions feeds/spiders/orf_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def start_requests(self):
for channel in channels:
yield scrapy.Request(
f"https://rss.orf.at/{channel}.xml",
self.parse,
meta={"path": channel, "dont_cache": True},
)

Expand Down
1 change: 1 addition & 0 deletions feeds/spiders/trend_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def start_requests(self):
"https://www.{}/sitemap-articles-{}.xml".format(
self.name, month.strftime("%Y-%m")
),
self._parse,
meta={"dont_cache": True, "handle_httpstatus_list": [404]},
)

Expand Down

0 comments on commit f291b0d

Please sign in to comment.