Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aniri committed Jul 23, 2017
1 parent c8fa16c commit da71ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -103,7 +103,7 @@ class TineretSpider(scrapy.Spider):
def parse(self, response):
articleLinks = LinkExtractor(restrict_css='div.main > div.article')
pages = articleLinks.extract_links(response)
for page in pages[:2]:
for page in pages:
yield scrapy.Request(page.url, callback=self.parse_article)

def parse_article(self, response):
Expand Down Expand Up @@ -150,7 +150,7 @@ def parse_article(self, response):
date = date,
title = title,
description = description,
documents = documents,
#documents = documents,
contact = contact,
feedback_days = feedback_days,
max_feedback_date = feedback_date
Expand Down

0 comments on commit da71ec8

Please sign in to comment.