image link re.sub fix
This commit is contained in:
parent
a344e2b40c
commit
7e9dd3ce14
@ -62,7 +62,7 @@ def check_item(settings_item):
|
||||
image = re.findall(image_regex, target_page_response.text)
|
||||
if len(image)>0:
|
||||
image_link = image[0]
|
||||
image_link = re.sub(r'(jpg|png)_[0-9]+x[0-9]+', "jpg_800x800", image_link) # get bigger image instead of preview
|
||||
image_link = re.sub(r'(jpg|png)_[0-9]+x[0-9]+', r'\1_800x800', image_link) # get bigger image instead of preview
|
||||
break
|
||||
|
||||
# get currency
|
||||
|
Loading…
x
Reference in New Issue
Block a user