用python怎么做模拟鼠标点击比较好?
高洛峰
高洛峰 2017-04-17 17:59:34
0
2
433

需求根据根词,爬下百度移动的搜索下拉词,搜索下拉词需要鼠标左击一下才会加载
这是以前写的爬百度移动的相关搜索词:
https://github.com/hzlRises/hzlgithub/blob/master/%E7%99%BE%E5%BA%A6%E7%A7%BB%E5%8A%A8%E7%9B%B8%E5%85%B3%E6%90%9C%E7%B4%A2.py

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
Ty80

. . . . Is it so troublesome? Baidu has its own drop-down keyword interface.

https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=你好

That’s it, you just add the keywords you need after wd=, and then use urllib2 to batch process.

小葫芦

python + selenium controls the browser and operates automatically

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template