[PYTHON] [EC2] How to install and download chromedriver from the command line

[EC2] How to install and download chromedriver from the command line.

Install chromedriver on your EC2 instance to use python's selenium.

1. 1. Copy the chromedriver path

Go to the download page of the version you want to download from the official page of Chrome Driver

https://chromedriver.chromium.org/downloads Copy the link address for linux64

image.png

Here, DL the following version https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_linux64.zip

2. Download chromedriver to EC2 and unzip

#Move to tmp directory
cd/tmp/

#Download chromedriver (copy the URL)
wget https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_linux64.zip


#Defrost
unzip chromedriver_linux64.zip

#Unzipped file/user/Move under bin
sudo mv chromedriver /usr/bin/chromedriver

Supplement

** tmp directory ** -Folder for temporary saving and decompression of files ・ Automatic deletion if not used for a certain period of time ・ How to check and change the set time Reference ITmedia

** wget command ** -Download the file with the specified URL -Unix commands ・ Abbreviation for GET from the Web

** unzip command ** -Decompress the specified compressed file

sudo -Execute the command as a proxy execution authority ・ AWS is required because it is outside your PC

** mv command ** ・ Move files ・ You can also specify the file name ・ If the same file exists, overwrite it

① Move files mv File to move Destination directory

② Change the file name mv file to move file name

③ Move the file and rename it mv File to move Destination directory / file name

Recommended Posts

[EC2] How to install and download chromedriver from the command line
[EC2] How to install chrome and the contents of each command
How to measure line speed from the terminal
How to use the grep command and frequent samples
(Remember quickly) How to use the LINUX command line
How to pass arguments when invoking python script from blender on the command line
How to install and use Tesseract-OCR
How to install and configure blackbird
How to install CUDA and nvidia-driver
How to install and use Graphviz
How to get followers and followers from python using the Mastodon API
How to get a string from a command line argument in python
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
How to extract the desired character string from a line 4 commands
Create custom Django commands and run them from the command line
How to install and use pandas_datareader [Python]
After updating to MacOS Catalina, install Xcode Command Line Tools and change from Python 2.7 series to 3.7 series (bash)
[Linux] How to use the echo command
How to use the Linux grep command
How to operate Linux from the console
How to access the Datastore from the outside
How to install fabric and basic usage
Install Chrome on the command line on Sakura VPS (Ubuntu) and launch Chrome with python from virtual display and selenium
[Python] How to test command line parser click
How to receive command line arguments in Python
[2020 version] How to install Python3 on AWS EC2
[Python] How to read data from CIFAR-10 and CIFAR-100
How to operate Linux from the outside Procedure
Convert XLSX to CSV on the command line
How to install Cascade detector and how to use it
[Free] Hit the Clash Royale API from lambda and send it to LINE
[Python] How to remove duplicate values from the list
How to write a GUI using the maya command
How to delete the specified string with the sed command! !! !!
How to install Python
How to install pip
How to use the grep command to recursively search directories and files to a specified depth
Open Chrome version of LINE from the command line [Linux]
How to install archlinux
[Python] How to specify the download location with youtube-dl
How to install Git GUI and Gitk on CentOS
How to install python
Linux user addition, how to use the useradd command
How to install BayesOpt
How to instantly launch Jupyter Notebook from the terminal
How to download files from Selenium in Python in Chrome
Extract files from EC2 storage with the scp command
Install the pip command
How to use argparse and the difference between optparse
How to hit the document of Magic Function (Line Magic)
[AWS EC2] How to install Maven on Amazon Linux 2
How to install Nbextensions
How to install git on Linux such as EC2
How to post a ticket from the Shogun API
How to install Prover9
[AWS EC2] How to install only MySQL client on Amazon Linux 2 and connect to RDS
Let's add it to the environment variable from the command ~
[Selenium] How to specify the relative path of chromedriver?
How to install NPI + send a message to line with python
Search for large files on Linux from the command line
How to connect to various DBs from Python (PEP 249) and SQLAlchemy