Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jacko460/text-mining
1 result
Show changes
Commits on Source (2)
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)