Skip to content

JusticeProject/Selenium-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Useful template scripts for web scraping projects that use Selenium.

High-level view

For a project using Selenium, the typical components are:

Python Script -> Selenium Module for Python -> Chrome WebDriver -> Chrome Web Broswer

Scripts in this repository

DownloadChromeDriver.py

This script will detect the version of the Chrome web browser on your Windows PC and will then download the correct version of the Chrome WebDriver.

StartSelenium.py

This script will do an automated Google search for news and pick a news article to navigate to.

Installation

  • Install the Chrome web browser
  • Install Python
  • Run the following commands at a command prompt to install Selenium (and another useful module):
pip install beautifulsoup4
pip install selenium
  • Run the following command to download (or update to) the newest version of the Chrome WebDriver. The python script must be in the current directory.
python .\DownloadChromeDriver.py

Running

  • Run this command at a command prompt to start running Selenium. The python script must be in the current directory.
python .\StartSelenium.py

About

Useful template scripts for web scraping projects that use Selenium.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages