Skip to content
Snippets Groups Projects
Commit 6856a0c1 authored by Jack Kolm's avatar Jack Kolm
Browse files

first project files

parent b406e59c
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
import pandas as pd
# Path to your CSV file
file_path = 'all_games.csv'
# Load the CSV file into a DataFrame
df = pd.read_csv(file_path)
# Display the first few rows of the DataFrame
#print(df.head())
print(df["summary"][0])
This diff is collapsed.
from bs4 import BeautifulSoup
from selenium import webdriver
import time
PATH = 'C:\Program Files (x86)\chromedriver.exe'
target_url = "https://x.com/scrapingdog"
driver = webdriver.Chrome(PATH)
driver.get(target_url)
time.sleep(5)
resp = driver.page_source
driver.close()
print(resp)
\ No newline at end of file
import requests
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
}
response = requests.get('https://www.imdb.com/find/?q=back%20in%20action&s=tt&exact=true&ref_=fn_ttl_ex', headers=headers)
print(response.text)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment