Code present in the code2.py file, helps you to run Selenium Scripts in headless mode using FireFox browser.
To try out the commands and examples of this article, you must have,
- A Linux distribution (preferably Ubuntu) installed on your computer.
- Python 3 installed on your computer.
- PIP 3 installed on your computer.
- 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
- Install Selenium
- Install Firefox Gecko Driver
- Run the above code in code2.py to Scrape Flikart Data for any Keyword of your choice.