Install chromedriver on your EC2 instance to use python's selenium.
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
Here, DL the following version https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_linux64.zip
#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
** 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