Skip to content

Instantly share code, notes, and snippets.

View Dob-The-Duilder's full-sized avatar

BobTheBuilder Dob-The-Duilder

View GitHub Profile
@Dob-The-Duilder
Dob-The-Duilder / 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'