Skip to content
Snippets Groups Projects
Commit 1af473d8 authored by jackkolm's avatar jackkolm
Browse files

remove old files and add gitignore

parent c2403b2b
No related branches found
No related tags found
No related merge requests found
Defuncts/
.venv
text.txt
__pycache__/
../.venv
\ No newline at end of file
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.
Please register or to comment