python爬虫自学-自己挖坑-自己跳-同时跳别人的

应项目需要 要学爬虫
记录一下遇到的坑:

1.You need to enable JavaScript to run this app.
首先明白 这个标签的含义:网上说 noscript 标签在不支持JavaScript 的浏览器中显示替代的内容。简单就是说没有纳入支持js ,或是不支持脚本或是禁用了。
加上一句话,两种,一种不行换一种:
python爬虫自学-自己挖坑-自己跳-同时跳别人的_第1张图片

2.The result of the xpath expression “//img/@src” is: [object Attr]. It should be an element.
不能这样去取元素,用 .get_attribute(‘src’) 。

3.python安装onnxruntime,出现:

ERROR: Could not find a version that satisfies the requirement onnxruntime (from ddddocr) (from versions: none)
ERROR: No matching distribution found for onnxruntime

pip install ddddocr-1.3.1-py3-none- .whl 不行
pip install ddddocr -i https://pypi.tuna.tsinghua.edu.cn/simple 还是不行
pip install onnxruntime-gpu==1.1.2 还是不行 啊啊啊啊啊啊啊啊!!!!!

终极解决: 降版本,我的是3.10的&#x

你可能感兴趣的:(自动化测试,python,python,爬虫,开发语言)