Skip to content

Instantly share code, notes, and snippets.

View khemiri-mohamed's full-sized avatar

khemiri mohamed khemiri-mohamed

View GitHub Profile
#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
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 ;