OATOwen's Applied Thinking

Using AI to write an IMDB scraping app

May 6, 2025 · Vectors

It can be intimidating to start down the road of using AI to create stuff on your laptop. To start with, you don't have to learn Python, it's favorite language. But you'll have to install it. The AI will gladly tell you how. You will use a terminal, such as the one built in.

As you develop your app, it will begin to require libraries, which you install with "pip install ". You will need to cut paste the answers it gives you into files to run them. Exciting! Especially if you have prior experience programming, this will seem very easy.

I went to first Grok, then chatGpt. Here was my question: could you write a program to: Given: an imdb link to a tv series, and a threshold imdb rating like maybe 6, Find: all the castmembers who subsequently were in another performance that has an imdb rating greater than the threshold

After saving and running their output, pasting it's errors back to it and updating my local file with their updates, it printed this:

$ python3 chatgpt_imdb.py
Enter IMDb TV series URL: https://www.imdb.com/title/tt0458253/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_the%2520closer
Enter rating threshold (e.g. 6): 5
Looking up series tt0458253...
Processing top 10 cast members.
<........>
Cast members with other work above rating threshold:
Kyra Sedgwick appeared in 'Another World' with rating 7.0
Kyra Sedgwick appeared in 'Born on the Fourth of July' with rating 7.2
Kyra Sedgwick appeared in 'Miss Rose White' with rating 6.9
Kyra Sedgwick appeared in 'Something to Talk About' with rating 5.8
Kyra Sedgwick appeared in 'Lemon Sky' with rating 6.3
J.K. Simmons appeared in 'Law & Order' with rating 7.8
J.K. Simmons appeared in 'Law & Order: Special Victims Unit' with rating 8.1
J.K. Simmons appeared in 'Law & Order: Criminal Intent' with rating 7.6
J.K. Simmons appeared in 'For Love of the Game' with rating 6.6
J.K. Simmons appeared in 'The Gift' with rating 6.7
Corey Reynolds appeared in 'The Terminal' with rating 7.4
Corey Reynolds appeared in 'Hairspray' with rating 6.7
Corey Reynolds appeared in 'North Star' with rating 7.3
Robert Gossett appeared in 'Major Crimes' with rating 7.8
G.W. Bailey appeared in 'Starsky and Hutch' with rating 7.0
G.W. Bailey appeared in 'Charlie's Angels' with rating 6.6
G.W. Bailey appeared in 'CHiPs' with rating 6.5
G.W. Bailey appeared in 'A Force of One' with rating 5.1
G.W. Bailey appeared in 'M*A*S*H' with rating 8.5
Jon Tenney appeared in 'Scandal' with rating 7.7
Jon Tenney appeared in 'You Can Count on Me' with rating 7.5
Jon Tenney appeared in 'Tombstone' with rating 7.8
Phillip P. Keene appeared in 'Sherlock & Daughter' with rating 6.5
Tony Denison appeared in 'Men of War' with rating 5.6
Tony Denison appeared in 'Prison Break' with rating 8.3
Tony Denison appeared in 'Crime Story' with rating 8.3
Michael Paul Chan appeared in 'The Goonies' with rating 7.7
Michael Paul Chan appeared in 'Falling Down' with rating 7.6
Michael Paul Chan appeared in 'Spy Game' with rating 7.1
Michael Paul Chan appeared in 'Batman Forever' with rating 5.4
Raymond Cruz appeared in 'Breaking Bad' with rating 9.5
Raymond Cruz appeared in 'Better Call Saul' with rating 9.0
Raymond Cruz appeared in 'Cleveland Abduction' with rating 6.6
Raymond Cruz appeared in 'CSI: Miami' with rating 6.5
Raymond Cruz appeared in 'Lauren' with rating 7.9

In case anyone is curious, here is the code it created:

[Note: the original LinkedIn article embeds the actual code block here as a native LinkedIn code snippet; it did not extract as plain text from the HTML export and is not reproduced above. Check the original LinkedIn Article at the source URL, or LinkedIn's Rich_Media export, to recover it if needed.]