Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed issue #62 #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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