Web Scraping in Python using Beautiful Soup | Writing a Python program to Scrape IMDB website
Vložit
- čas přidán 4. 07. 2021
- Web Scraping in Python using Beautiful Soup module. In this video I will explain how to perform web scraping in Python using Beautiful Soup and Requests module. I will write a python program to scrape the IMDB website and then load the desired data into an excel file. I will write this program from scratch so you can follow along.
Web Scraping is the process of programmatically extracting some data from a website. In Python, we can easy write program to scrape website by using the Beautiful Soup and Requests module. Requests module can be used to access the desired website and Beautiful Soup module can be used to parse the HTML source code of the website. Beautiful soup makes it very easy to parse HTML content and then provides multiple methods which can be used to extract the data from any HTML tags. All the website are written in HTML language hence in order to perform web scrapping, our program needs to read the HTML content. This is were Beautiful Soup comes into picture to make it very easy to access the contents of HTML using very simple methods.
You don’t need to be an expert in HTML to learn python web scrapping. You just need to know the most basic HTML which is to know what is a tag and how to identify the attributes associated with a tag.
In this video, in order to explain the concept of web scraping using BeautifulSoup in Python, we will be writing a python program which will access the IMDB website and then fetch the top rated movies present in the IMDB website and then load this data into an excel file.
IMDB website contains movie ratings but in this program we are only interested in scraping the top rated movies of all time only.
In order to load data into an excel file, I will be using openpyxl module. Using openpyxl, it is very easy to create a new excel file and then rename the sheet name and then load data into the excel file. I won’t be explaining openpyxl in detail but will just cover enough to know how to create an excel file and then load data into an excel file.
We will be installing Requests module and Beautiful Soup module using the pip installer. I am using mac so the command in mac to be run from terminal is “pip3 install module_name”. If you are using windows then you need to run the pip install command from command prompt using the command as “pip install module_name”.
🔴 WATCH MORE VIDEOS HERE 👇
✅ SQL Tutorial - Basic concepts:
• SQL Tutorial - Basic c...
✅ SQL Tutorial - Intermediate concepts:
• SQL Tutorial - Interme...
✅ SQL Tutorial - Advance concepts:
• SQL Tutorial - Advance...
✅ Practice Solving Basic SQL Queries:
• Practice Solving BASIC...
✅ Practice Solving Intermediate SQL Queries:
• Practice Solving INTER...
✅ Practice Solving Complex SQL Queries:
• Practice Solving COMPL...
✅ Data Analytics Career guidance:
• Data Analytics career ...
✅ SQL Course, SQL Training Platform Recommendations:
• SQL Course / Training
✅ Python Tutorial:
• Python Tutorial
✅ Git and GitHub Tutorial:
• Git and GitHub
✅ Data Analytics Projects:
• Data Analytics Projects
THANK YOU,
Thoufiq
I've watched so many Web Scraping tutorials out there and this one is the best by far.
I love that you explain every line of code
Very helpful. I'm not a programmer, but I want to use these techniques to streamline my job. All the other videos I watched just sailed over my head. This is a great explanation, and easy to follow, even for me! Thank you.
Not feeling any difficulties to follow along. which means that our trainer is maestro of explaining the things which seems to be difficult.
Damn I love the way you explain the things makes anyone understands without much effort. I've watched many videos on web scraping but really this video helped out a lot. You're amazing brother
This was SUPER helpful! I've watched a few other tutorials on this subject, but this one really helped me understand the whole process. Thank you!
Thank you so much Thoufiq. You have been my star instructor since the beginning of my data analyst journey. Much appreciation towards your explanations and many videos.
one of the best videos of such clarity and precisely what code does. Only a person with a deep understanding can do this. Thank you for sharing.
Thank you so much ☺️
Glad you liked it
I am so happy i found this video. I have just started with my data science career n was looking to learn webscraping for my first office project, i had went across tons of webscraping videos but this video just made my day. thank you so much.
I am glad to hear that .. good luck with your job
Excellent tutorial on web scraping. Loved the way you explained everything with so much ease & great details.
Glad to hear that :)
Brilliant tutorial on web scraping and importing data into Excel. Two thumbs up! Thank you.
I had been suffering so much from not understanding how things work in web scrapping. Your video gave me a clue and understanding on how approach the problem...I can't be more thankful. I really appreciate you and wish you all the best...
Thank you so much .. glad you liked it
Beautiful indeed! I am going to try this myself!! Thank you for the detailed walk thru. You make great videos!!
Thank you once again Sudarsan 🙏🏼
Really happy to see your feedback 🙂
Glad you liked this content ..
absolutely loved it !! understood so much watching compared to other videos!!
You are amazing. This is indeed one of the best web scraping videos I have seen. The way you explain each and every step and what it does really cleared things up for me. Thank you so much.
Thanks for this helpful video. Although in 2023, the page sources are totally different, I can figure out the way based on your syntax. It seems not very hard to do. Your video is very detailed and straightforward for a beginner like me. Hope you can produce many good videos like this. Thanks!
How do i like this video 200 times. I have an assessment on web scraping due soon. I've watched numerous Python web scraping videos but i did not get the information i need. this was the best so far. Thank you so much. You got a new subscriber 😊
The best explanation ever! Thank you for your great help and efforts🙏
Thank you for explaining..the explanation is very good and the best part you have explained in a very simple and effective manner...I was struggling to understand the web scrapping through other videos....but now I've understand properly....Thanks to you 🙏
After concluding my work successfully and I exactly download the excel sheet. This was my first web scrapping file. After this I hit the Subscribe Button
Such a wonderful explanation with least effort...is very rare !!! Thank you so much Tohfiq 😘😘😘😘😘
Absolute best tutorial for beginners, Thank you ☺️
Damn this was insanely good and easy. Amazing explanation and great job!
Thank you Hakim
The best video i have found for web scrapping 🙏
the clearest teaching to web scraping. Thankyou very much.
Thank you Lai 🙏🏼
So glad you liked it..
This was the most helpful educational webscrape video I’ve watched, thank you
Thank you :)
Excellent Tutorial.
Your explanation generated interest in web scraping for me. I was finding it hard with other tutorials. You nailed it with simple and clear explanation.
Thank you buddy… I am so glad to read this feedback 🙏🏼
Great!!! video on web scrapping I have watched other CZcams videos about the same subject but your made everything very easy to follow and understand.
Best video to learn webscrapping ,very easily taught
Clear and crisp explanation !! Kudos. Keep up the good work👍
Thank you Suraj 🙏🏼
Great work, finally understood the code for Web scrapping
Aag laga diye bro!!!🔥❤🔥🔥
Thank you sir
Using your video/content my first web scraping
Super helpful, especially writing out the results to Excel.
Thank you so much, was searching this kind of simple explanation for so long.
Your welcome 🙏🏼
Glad you liked it
Best and simplest tutorial so far. I strongly recommend it
Thank you 😀
This was an excellent tutorial with great explanation. Perfect for beginners.
Beautifully explain. Thanks and keep up the good work of helping others ☺️
Genious! you really helped me out I understand this much better now!
Thank you for this video, very very helpful and detailed with well explanation of each step. Please continue to create such content.
Thank you Abhik for the feedback 🙏🏼
Glad this helped you 🙂
Sure, will keep doing my best ..
very detailed explanation. Thanks Toufiq
One of the best video I ever seen on this topic
Awesome this should reach many people , many views . Worth it. Came back after your Sql content
Thank you so much for your kind words 🙏🏼
So glad you liked the video 🙏🏼☺️
BeautifulVideo. Very informative.
Thank you . I wished i came across your channel this time last week, I would have gotten a DS job
It's different than other videos and i learnt a lot. Thanks
Thank you so much , this video helped me understand web scraping in a better manner. i even did a project after learning from your video
Thank you for this amazing video. I did my first web-scraping in python :)
Awesome bro,
Glad it helped
The way you explained is soo simple and easy to understand thank you soo much
Excellent work sir. Thank you so mutch.
Excellent explanation! Thank you!
Thank you so much! This is just amazing!
Thank you so much!! Enjoyed the tutorial a lot
Definetly excellent straight and concise application
Thank you techTFQ
Thank you so much for this tutorial. Really helpful one. God bless you!!😊
finally done .thanks a lot for sharing this video
Amezing !
I just wanted this .
Thank you ❤️
Thanks a lot for the feedback 🙏🏼
So glad you found it helpful ☺️
How boss..., literally damn good explanation....💯💯💯
thanks a lot, the best intro to web scraping.
Thanks! this video is very useful. God bless
Awesome, thank you very much, for this excellent tutorial...!
thankyou so much sir............this tutorial really helped me in learning something new.
Good web scrapping video
thx for the tutorial it helped me immensely
This was a ton helpful. Thank you so much!
Glad it helped
Beautifully explained! Next step, I am interested in scrapping dynamic websites.
Thank you 🙏🏼
Glad you liked it 🙂
Hey, you are just smart, i loved it.
Well explained sir! Thank you so much sir!
I like your way of explanation. Can you please create a bootcamp or course on data analysis with essential tools like Excel, SQL, Tableau/powerbi, python ? It would be great.
Superb Explanation!
Thank you for this amazing session!
Glad you liked it
Bro, you are amazing !!
Great video! I think I will become a python and SQL champ in a few weeks. I am going to watch all your videos! Thanks
Thank you Sahil .. Definitely bro you can
Thank you so much for explaining easily and this helps me
Loved the way you explained everything !! One of the best tutorial on Web Scraping 🎉🎉🎉
Glad it was helpful!
Thank you, friend!
Thank you so much man it helps me alot,
Thanks for your efforts ... It is a excellent tutorial :)
Awesome tutorial, crystal clear, the best one of its class by all standards.
Glad you think so!
Excellent. Thank you
Excellent tutorial. Explain everything very well. Thank you
Thank you buddy
Beautiful session, was very useful to learning about data scraping.😊
Glad you liked it ☺️
Great explanation, thanks for sharing!
The explanation is bit by bit, Fabulous.
Thank you 🙏🏼
Glad you liked it
spectacular video
Thank you! Nicely explained! 👍
Your welcome 🙏🏼
Glad this helped
Awesome explanation, just subbed to the channel.... Great Content
Really interesting video I have learnt a lot about how things can be done in real world.
thanks for the video,easy to grasp the concept
Easiest one, thanks❤
Amazing content. Thank you very much!
Your welcome 🙏🏼
Glad you liked it
Great video, thanks a lot 🎉😊
Straightforward! thanks.
Your welcome 🙏🏼
Glad you liked it..
You saved me bro, thanks!
Glad this helped
Very very informative... ❤❤
Thank you so much , I executed perfectly 🤩🤩 no error . Awesome, saved my day 😍😍
Your welcome 🙏🏼
It’s nice to hear ☺️
Hi I have an assignment to scrap a web page and save it to database and the script should run for every 15 min for latest data.. Can you help me please
Crystal clear and excellent presentation. Thank you!
Glad it was helpful!
Can Beautiful Soup interact with websites? For example, can it enter something in a search box, press the search button, then retrieve the results as in your example?
Nope beautiful soup cannot do it but you can use selenium for that
@@techTFQ Thank you!
Great Tutorial with nice explanation!!🙌
Thank you Pawanya 🙏🏼
Best video , explained very well
This was very interesting🤓 Really enjoyed understanding web scrapping👌👌
Thanks a lot Shahil ❤️❤️
Glad you understood it..