Browse Source

delete _get_item_detail_page in ./Core/spider.py

master
Yu Tao 3 years ago
parent
commit
390df59d0d
  1. 9
      Core/spider.py

9
Core/spider.py

@ -197,15 +197,6 @@ class Waiter(): @@ -197,15 +197,6 @@ class Waiter():
print('库存状态:{}(无现货)'.format(jsparser['StockStateName']))
return False
def _get_item_detail_page(self, sku_id):
"""访问商品详情页
:param sku_id: 商品id
:return: 响应
"""
url = 'https://item.jd.com/{}.html'.format(sku_id)
page = requests.get(url=url, headers=self.headers)
return page
def _waitForSell(self):
area_id = self.area
sku_id = self.skuids

Loading…
Cancel
Save