Linux Python3 Selenuim Firefox

Source: Internet
Author: User

1. Download the latest version of Firefox to copy to/usr/local/softwar

Cd/usr/local/softwar under

Tar jxvf firefox-latest-x86_64.tar.bz2

Ln-sf/usr/local/software/firefox/firefox

Use Firefox--version to view versions

The existing version is 60.0

2. Installing Selenium

PIP3 Install Selenium

The existing version is 3.12.0

3. Download Geckodriver

Https://github.com/mozilla/geckodrive

The downloaded version is v0.20.0

4. Test if OK

From selenium import Webdriver

Driver = Webdriver. Firefox ()

Driver.get (' http://www.baidu.com ')

Driver.page_source

PS Many tutorials say to download XVFB

Yum Install Xvfb

Linux Python3 Selenuim Firefox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.