Click here to Skip to main content
15,499,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
the tags are inside anchor tag.. a href and the title is inside a tags.
I have tried it multiple time, but I am unable to extract title. can I scrap with any other method?

What I have tried:

movie = soup.find('a',href_="/title/tt0068646/")
movie 
Posted
Updated 28-Oct-22 20:06pm
Comments
Dave Kreskowiak 29-Oct-22 1:07am     CRLF
It's "scrape", not "scrap". And you don't need to do that at all. You just need to use the IMDB Web API to get the data you want.

1 solution

Rather than scraping which normally needs changing frequently to cope with site changes, I'd start here: https://developer.imdb.com/[^] or here: How To Use the IMDb API (2021) [Tutorial] | RapidAPI[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900