This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import re | |
URL = "https://www.imdb.com/chart/top/" | |
response = requests.get(URL) | |
scraped = response.text | |
mysoup = BeautifulSoup(scraped, "html.parser") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# Read all decimal places of PI from the file | |
# and store as a string of 1 Million digits | |
with open("piDigits.txt", 'r') as f: | |
pidecimals = f.read() | |
f.close() | |
# Generate a list of random numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pandas as pd | |
from tabulate import tabulate | |
import sys | |
pd.set_option('display.max_columns', None) | |
pd.set_option('display.max_rows', None) | |
pd.set_option('display.width', 600) | |
playerurl = "https://www.ecfrating.org.uk/v2/new/api.php?v2/players/name/" |