修复gcolle无法刮削的问题

number前面缺了个self,请求URL会变成'https://gcolle.net/product_info.php/products_id/gcolle-xxxxx',导致无法刮削
This commit is contained in:
ChaseDream
2022-07-17 20:07:50 +08:00
committed by GitHub
parent e39823f616
commit baf915508f

View File

@@ -29,7 +29,7 @@ class Gcolle(Parser):
self.number = number.upper().replace('GCOLLE-','')
self.detailurl = 'https://gcolle.net/product_info.php/products_id/' + self.number
session = get_html_session(cookies=self.cookies, proxies=self.proxies, verify=self.verify)
htmlcode = session.get('https://gcolle.net/product_info.php/products_id/' + number).text
htmlcode = session.get('https://gcolle.net/product_info.php/products_id/' + self.number).text
htmltree = etree.HTML(htmlcode)
r18url = self.getTreeElement(htmltree, self.expr_r18)