CREATE DATABASE fortune_500_web_scraper;
CREATE USER 'shaban'@'%' IDENTIFIED BY 'password';
GRANT ALL ON fortune_500_web_scraper.* to 'shaban'@'%';
FLUSH PRIVILEGES;
EXIT;
USE fortune_500_web_scraper;
CREATE TABLE companies (
id VARCHAR(36) DEFAULT UUID() PRIMARY KEY,
rank INT,
company LONGTEXT,
website LONGTEXT,
career_links LONGTEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
Create virtual environment
Activate virtual environment
source .venv/bin/activate
Install project dependencies
pip install -r requirements
scp -r fortune_500_web_scraper sfbu:~/