Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以正常登陆,爬取第一页数据,但是之后滑块部分就出错了 #48

Closed
Daoling opened this issue Aug 4, 2019 · 2 comments
Labels
question Further information is requested

Comments

@Daoling
Copy link

Daoling commented Aug 4, 2019

Log如下:
包邮威德博威No.5羽毛球五号场馆训练比赛12只装耐打稳定室内高手 月成交68评价732旺旺在线 55.00 //detail.tmall.com/item.htm?id=13074420768&skuId=22276410079&areaId=310100&user_id=748152180&cat_id=50043727&is_b=1&rn=aa934dd095dab511c3ed3f2cde0da7b6

get button failed: Message: move target out of bounds
(Session info: chrome=76.0.3809.87)

Traceback (most recent call last):
File "C:/Users/Daoling/Downloads/Tmall.py", line 216, in
a.crawl_good_data() # 爬取天猫商品数据
File "C:/Users/Daoling/Downloads/Tmall.py", line 150, in crawl_good_data
EC.presence_of_element_located((By.CSS_SELECTOR, '#J_ItemList > div.product > div.product-iWrap')))
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

报错截图:

微信图片_20190804114913

@wiidz
Copy link

wiidz commented Aug 20, 2019

我是登录能登录,爬第一页的时候报错

tmall_crawler.py:128: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if(err1 == "喵~没找到"):
可以爬取这些信息
Traceback (most recent call last):
  File "tmall_crawler.py", line 214, in <module>
    a.crawl_good_data() #爬取天猫商品数据
  File "tmall_crawler.py", line 144, in crawl_good_data
    page_total = self.search_toal_page()
  File "tmall_crawler.py", line 84, in search_toal_page
    page_total = number_total.text.replace("","").replace("页,到第页 确定","").replace("","")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)

@reborm
Copy link

reborm commented Aug 30, 2019

这是被淘宝检测到使用selenium了,有大神能把这个破了么

@shengqiangzhang shengqiangzhang added duplicate This issue or pull request already exists question Further information is requested and removed duplicate This issue or pull request already exists labels Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants