Skip to content

Commit

Permalink
fix: change pic_title_list xpath (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crispy-Bones authored Dec 13, 2024
1 parent ecc04b0 commit 89e1df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/core/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_big_pic_by_amazon(json_data, originaltitle_amazon, actor_amazon):
pic_card = html.xpath('//div[@class="a-section a-spacing-base"]')
for each in pic_card: # tek-077
pic_ver_list = each.xpath('div//a[@class="a-size-base a-link-normal s-underline-text s-underline-link-text s-link-style a-text-bold"]/text()')
pic_title_list = each.xpath('div//span[@class="a-size-base-plus a-color-base a-text-normal"]/text()')
pic_title_list = each.xpath('div//h2[@class="a-size-base-plus a-spacing-none a-color-base a-text-normal"]/span/text()')
pic_url_list = each.xpath('div//div[@class="a-section aok-relative s-image-square-aspect"]/img/@src')
detail_url_list = each.xpath('div//a[@class="a-link-normal s-no-outline"]/@href')
if len(pic_ver_list) and len(pic_url_list) and (len(pic_title_list) and len(detail_url_list)):
Expand Down

0 comments on commit 89e1df1

Please sign in to comment.