Posts

Showing posts from October, 2021

How to scrape data and automate things using selenium.

Image
  Selenium : The  selenium  package is used to automate web browser interaction from Python. Python language bindings for Selenium WebDriver. Supported Python versions for Selenium are 2.7 and 3.5+.   Selenium requires a driver to interface with the chosen browser. Selenium server is a Java program. Java Runtime Environment (JRE) 1.6 or a newer version is recommended to run the Selenium server. To install selenium:  pip install selenium   The  selenium.webdriver  module provides all the WebDriver implementations. Currently supported WebDriver implementations are Firefox, Chrome, IE, and Remote. The  Keys  class provides keys in the keyboard like RETURN, F1, ALT, etc.   What is a web driver?  WebDriver drives a browser natively, as a user would, either locally or on a remote machine using the Selenium server, marks a leap forward in terms of browser automation. Selenium WebDriver refers to both the language bindings and the implementations of the individual browser controlling code. Thi