7

Python爬虫编程思想(112):基于Splash的爬虫--模拟鼠标键盘动作

 2 years ago
source link: https://blog.csdn.net/nokiaguy/article/details/122419100
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Python爬虫编程思想(112):基于Splash的爬虫--模拟鼠标键盘动作

专栏收录该内容
113 篇文章 6 订阅 ¥29.90 ¥99.00

        Splash Lua脚本还提供了很多方法,用于模拟鼠标和键盘的动作,例如,mouse_click函数可以模拟鼠标单击的动作,send_keys可以模拟键盘按键的动作。

        下面的例子用send_text函数在京东商城搜索文本框中输入关键字,然后使用mouse_click函数模拟单击搜索按钮动作。

运行结果如图1所示。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK