1: Environment PYTHon3.5, latest Firefox, Selenium -3.14.0.

I was going to use no interface, but I didn’t feel good about it so I used a browser with an interface first. Write slowly over several times. This section starts with configuring the environment.

2: Installation:

The Version of the Python Selenium library must correspond to the browser version. Otherwise, the browser may not open, or the browser may not open the page. This is very important.

At the beginning:

PIP install -i pypi.douba.com/simple Selenium. The downloaded version is not correct. (Too low.)

The latest version should look like this:

Be sure to install the latest version:

Pip install selenium = = 3.14.0.

Next comes the download driver:

Download from Github at:

Github.com/mozilla/gec…

The latest one is this one. He requested that the Selenium version be above 3.11. So there’s got to be some respect here. At first I didn’t notice the version of Selenium that Python had installed. Lead to. The access page has not been opened.

After downloading it, unzip it and save it in a directory. I put it in the Script directory of the Python installation directory. Because of this directory I’m going to assign to the environment variable.

Finally, go to the Firefox website and download the latest browser. (There is an option during the installation process, it is best to turn off the automatic upgrade).

These are packed and ready to use. :

Here the page takes some time to load, in order to ensure the normal loading. We put him to sleep for ten seconds.

Finish :(don’t worry about the details for now)

Next section do a simulated login and jump to the list screen.

If you do meet a good coworker, you’ll be lucky. Come on! Q Group :766610200 Includes Python, PythonWeb, crawler, data analysis and other Python skills, as well as artificial intelligence, big data, data mining, automation and other learning methods. Build from zero to the project development hands-on combat all-round analysis!

Click: Join