Skip to content

Commit 1846fd3

Browse files
Merge pull request #81 from EdmundWong98/issue#80
fix issue#80
2 parents e686ebe + 9c6ec72 commit 1846fd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

auto_comment_plus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def ordinary(N, opts=None):
375375
)
376376
# print(imgPart1) # 和上传图片操作
377377
if imgPart1.status_code == 200 and ".jpg" in imgPart1.text:
378-
imgurl1 = f"{imgBasic}{imgPart1.text}"
378+
imgurl1t = f"{imgBasic}{imgPart1.text}"
379379
else:
380380
imgurl1 = ""
381381
opts["logger"].info("上传图片失败")
@@ -390,7 +390,7 @@ def ordinary(N, opts=None):
390390
)
391391
# print(imgPart2) # 和上传图片操作
392392
if imgPart2.status_code == 200 and ".jpg" in imgPart2.text:
393-
imgurl2 = f"{imgBasic}{imgPart2.text}"
393+
imgurl2t = f"{imgBasic}{imgPart2.text}"
394394
else:
395395
imgurl2 = ""
396396
opts["logger"].info("上传图片失败")

jdspider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def getId(self) -> list:
144144
return []
145145

146146
html = etree.HTML(response.text)
147-
return html.xpath('//li[@class="gl-item"]/@data-spu')
147+
return html.xpath('//li[@class="gl-item"]/@data-sku')
148148

149149
def getData(self, maxPage: int, score: int):
150150
"""

0 commit comments

Comments
 (0)