This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import libraries | |
| import requests | |
| from bs4 import BeautifulSoup | |
| #specify the index_url | |
| index_url = 'https://www.usembassy.gov/' | |
| # query the webpage and save the Html in the 'response' variable | |
| response = requests.get(index_url).content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql --user=root -p'your database password here' --database=database_name --execute="LOAD DATA INFILE '/var/lib/mysql-files/big_csv_file.csv' IGNORE INTO TABLE big_csv_file_Table ; |