Skip to content

Commit

Permalink
fix(google): fix parsing logic for thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria committed Jul 24, 2023
1 parent d6a8c1a commit c81ac96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PicImageSearch/model/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, resp_text: str, resp_url: str):
# 结果返回值
thumbnail_dict: Dict[str, str] = self.create_thumbnail_dict(script_list)
self.raw: List[GoogleItem] = [
GoogleItem(i, thumbnail_dict.get(i("img").attr("id"), None))
GoogleItem(i, thumbnail_dict.get(i('img[id^="dimg_"]').attr("id"), None))
for i in data.find("#search .g").items()
]

Expand Down

0 comments on commit c81ac96

Please sign in to comment.