Skip to content

Commit

Permalink
Merge pull request #102 from taoyudong/master
Browse files Browse the repository at this point in the history
Fix Google Image parser
  • Loading branch information
ZhiyuanChen authored Jul 18, 2021
2 parents 7e78a9a + 2580b27 commit 5a2e975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icrawler/builtin/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse(self, response):
#data = meta[31][0][12][2]
#uris = [img[1][3][0] for img in data if img[0] == 1]

uris = re.findall(r'http.*?\.(?:jpg|png|bmp)', txt)
uris = re.findall(r'http[^\[]*?\.(?:jpg|png|bmp)', txt)
return [{'file_url': uri} for uri in uris]


Expand Down

0 comments on commit 5a2e975

Please sign in to comment.