Skip to content

Commit

Permalink
Fixing lowcarbyum scraper (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Feb 14, 2019
1 parent 1c51fdc commit 576b74f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ketohub/spiders.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ class LowCarbYum(spiders.CrawlSpider):
# e.g. https://lowcarbyum.com/category/desserts/
spiders.Rule(
linkextractors.LinkExtractor(
allow=r'https://lowcarbyum.com/category/\w+(-\w+)*/$')),
allow=r'https://lowcarbyum.com/category/',
deny=r'https://lowcarbyum.com/category/((reviews)|(articles))')
),
# Extract links for recipes.
spiders.Rule(
linkextractors.LinkExtractor(
Expand Down

0 comments on commit 576b74f

Please sign in to comment.