Is there any way to control links browser from python? I need to make some bot, twill don't work on my page, Selenium need's X server. Maybe ot开发者_开发百科her way to do it?
Using X virtual framebuffer Xvfb you can run selenium/web browser without X:
Xvfb :1 -screen 0 1152x864x16
DISPLAY=1 ./firefox
and run the selenium tests from command line.
I would try to use pexpect (on Unix-like systems; wexpect on Windows), just as I would for the purpose of controlling other text-based, interactive applications that don't offer an explicit API of their own.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论