Lokeshrathi / selenium_linux_deploy

Code to run Selenium Scripts in Linux using Headless mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

selenium_linux_deploy

Code present in the code2.py file, helps you to run Selenium Scripts in headless mode using FireFox browser.

Prerequisites:

To try out the commands and examples of this article, you must have,

  1. A Linux distribution (preferably Ubuntu) installed on your computer.
  2. Python 3 installed on your computer.
  3. PIP 3 installed on your computer.
  4. Mozilla Firefox installed on your computer.

$ sudo pip3 install virtualenv ## to install python virtualenv

$ virtualenv .venv ## create a virtual environment

$ source .env/bin/activate ## activate the virtual environment

  1. Install Selenium
  2. Install Firefox Gecko Driver
  3. Run the above code in code2.py to Scrape Flikart Data for any Keyword of your choice.

About

Code to run Selenium Scripts in Linux using Headless mode

License:Apache License 2.0


Languages

Language:Python 100.0%