Skip to content

Instantly share code, notes, and snippets.

View roberthoffman04's full-sized avatar

Robert Hoffman roberthoffman04

View GitHub Profile
@roberthoffman04
roberthoffman04 / IMDb.py
Created December 10, 2022 22:43
Extracts key information from IMDb pages based on movie name
from bs4 import BeautifulSoup
from mechanize import Browser
import re, json
def main():
movie = str(input('Movie Name: '))
movie_search = '+'.join(movie.split())
base_url = 'http://www.imdb.com/find?q='
url = base_url+movie_search+'&s=all'