Skip to content

Commit

Permalink
Merge pull request lzjun567#19 from bihuchao/changed
Browse files Browse the repository at this point in the history
wrong index
  • Loading branch information
lzjun567 authored May 26, 2017
2 parents 20080fa + 2da2117 commit 1be7d93
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 1be7d93

Please sign in to comment.