Skip to content

Commit

Permalink
wrong index
Browse files Browse the repository at this point in the history
  • Loading branch information
bihuchao committed May 18, 2017
1 parent 20080fa commit 2da2117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def parse_body(self, response):
pattern = "(<img .*?src=\")(.*?)(\")"

def func(m):
if not m.group(3).startswith("http"):
if not m.group(2).startswith("http"):
rtn = "".join([m.group(1), self.domain, m.group(2), m.group(3)])
return rtn
else:
Expand Down

0 comments on commit 2da2117

Please sign in to comment.