Skip to content

Commit 2da2117

Browse files
author
bihuchao
committed
wrong index
1 parent 20080fa commit 2da2117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdf/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def parse_body(self, response):
145145
pattern = "(<img .*?src=\")(.*?)(\")"
146146

147147
def func(m):
148-
if not m.group(3).startswith("http"):
148+
if not m.group(2).startswith("http"):
149149
rtn = "".join([m.group(1), self.domain, m.group(2), m.group(3)])
150150
return rtn
151151
else:

0 commit comments

Comments
 (0)