Skip to content

Commit

Permalink
fix image token extraction bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SherlockNovitch committed Dec 22, 2023
1 parent 84a0889 commit 1c3bad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Image:
IMAGE_INFO = compile(r'("infoList":\[\{.*?}])')
IMAGE_TOKEN = compile(
r"http://sns-webpic-qc.xhscdn.com/\d+/\w+/(\w+)!")
r"http://sns-webpic-qc.xhscdn.com/\d+/\w+/([/\w]+)!")

def get_image_link(self, html: str) -> list:
data = self.__extract_image_data(html)
Expand Down

0 comments on commit 1c3bad5

Please sign in to comment.