Skip to content

Instantly share code, notes, and snippets.

View isabellabenabaye's full-sized avatar

Isabella Benabaye isabellabenabaye

View GitHub Profile
@isabellabenabaye
isabellabenabaye / scraping_imdb_episodes.py
Created May 15, 2020 08:17
Partial code to scrape IMDb ratings for TV show episodes
# Initializing the series that the loop will populate
community_episodes = []
# For every season in the series-- range depends on the show
for sn in range(1,7):
# Request from the server the content of the web page by using get(), and store the server’s response in the variable response
response = get('https://www.imdb.com/title/tt1439629/episodes?season=' + str(sn))
# Parse the content of the request with BeautifulSoup
page_html = BeautifulSoup(response.text, 'html.parser')
@isabellabenabaye
isabellabenabaye / about.html
Created May 6, 2020 00:14
Alternative about widget for the Hugo Academic theme. Centers and only includes your avatar, title, and social icons.
{{ $ := .root }}
{{ $page := .page }}
{{ $author := "" }}
{{ if .author }}
{{ $author = .author }}
{{ else }}
{{ $author = $page.Params.author }}
{{end}}