Python2 and Python3
sudo apt-get intall python2
sudo apt-get install python3
For installing Python Librarys do you need the pip installed.You can install it with the following commands:
sudo apt install python-pip
sudo apt install python3-pip
To manage data scrapped from sites and export it for excel sheets.
pip3 install pandas
To scrap the web sites contents.
pip3 install beautifulsoup4
Is the responsable for automating the tasks in the browser.
pip install selenium
you will need to download latest executable from git repository Geckodriver.
Next you will need to add the directory containing the executable to the system path. you can do the following to append it to your system’s search path :
export PATH=$PATH:/path/to/directory/of/executable/downloaded/in/previous/step
Now you can run this code:
from selenium import webdriver
browser = webdriver.Firefox()
Then a Mozila Firefox automated browser will opening.