Skip to content

Commit

Permalink
fixing issue rugantio#62 by eliminating some empty comments that are …
Browse files Browse the repository at this point in the history
…triggering a bug in the Scrapy library. 'scrapy/scrapy#4477'
  • Loading branch information
Di-ref committed Jul 26, 2020
1 parent bda7d6a commit cfe1092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions fbcrawl/spiders/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*args,**kwargs)

def parse_page(self, response):
'''
'''
if self.type == 'post':
yield scrapy.Request(url=response.url,
callback=self.parse_post,
Expand Down
6 changes: 3 additions & 3 deletions fbcrawl/spiders/fbcrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def parse_page(self, response):
Parse the given page selecting the posts.
Then ask recursively for another page.
'''
# #open page in browser for debug
# from scrapy.utils.response import open_in_browser
# open_in_browser(response)
#open page in browser for debug
#from scrapy.utils.response import open_in_browser
#open_in_browser(response)

#select all posts
for post in response.xpath("//div[contains(@data-ft,'top_level_post_id')]"):
Expand Down
2 changes: 0 additions & 2 deletions fbcrawl/spiders/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*args,**kwargs)

def parse_page(self, response):
'''
'''
if self.type == 'post':
yield scrapy.Request(url=response.url,
callback=self.parse_post,
Expand Down

0 comments on commit cfe1092

Please sign in to comment.