Web Scraping in Python using Beautiful Soup | Writing a Python program to Scrape IMDB website

  Рет қаралды 161,405

techTFQ

techTFQ

3 жыл бұрын

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

Пікірлер: 388
@hxghrxnk5291
@hxghrxnk5291 2 жыл бұрын
I've watched so many Web Scraping tutorials out there and this one is the best by far.
@dennisaxopoulos5421
@dennisaxopoulos5421 2 жыл бұрын
I love that you explain every line of code
@daveg5857
@daveg5857 Жыл бұрын
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.
@MdRizwan-uu9dv
@MdRizwan-uu9dv Жыл бұрын
Not feeling any difficulties to follow along. which means that our trainer is maestro of explaining the things which seems to be difficult.
@shanmukhch3763
@shanmukhch3763 Жыл бұрын
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
@TomMartinek
@TomMartinek Жыл бұрын
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!
@alisonhenley2551
@alisonhenley2551 11 ай бұрын
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.
@2380raj
@2380raj Жыл бұрын
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.
@techTFQ
@techTFQ Жыл бұрын
Thank you so much ☺️ Glad you liked it
@AbhishekSingh-jy5ot
@AbhishekSingh-jy5ot Жыл бұрын
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.
@techTFQ
@techTFQ Жыл бұрын
I am glad to hear that .. good luck with your job
@anoopbhagat13
@anoopbhagat13 2 жыл бұрын
Excellent tutorial on web scraping. Loved the way you explained everything with so much ease & great details.
@techTFQ
@techTFQ 2 жыл бұрын
Glad to hear that :)
@valarietan
@valarietan Жыл бұрын
Brilliant tutorial on web scraping and importing data into Excel. Two thumbs up! Thank you.
@SalehGoodarzian
@SalehGoodarzian Жыл бұрын
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...
@techTFQ
@techTFQ Жыл бұрын
Thank you so much .. glad you liked it
@sudarkrish
@sudarkrish 2 жыл бұрын
Beautiful indeed! I am going to try this myself!! Thank you for the detailed walk thru. You make great videos!!
@techTFQ
@techTFQ 2 жыл бұрын
Thank you once again Sudarsan 🙏🏼 Really happy to see your feedback 🙂 Glad you liked this content ..
@vishwanathmuthuraman5530
@vishwanathmuthuraman5530 Жыл бұрын
absolutely loved it !! understood so much watching compared to other videos!!
@grandparick3176
@grandparick3176 Жыл бұрын
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.
@kimvo4929
@kimvo4929 9 ай бұрын
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!
@AwanievaStudios
@AwanievaStudios Жыл бұрын
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 😊
@AYFITwins
@AYFITwins Жыл бұрын
The best explanation ever! Thank you for your great help and efforts🙏
@aniketsingh1879
@aniketsingh1879 Жыл бұрын
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 🙏
@sadiarasoolbaksh2562
@sadiarasoolbaksh2562 Жыл бұрын
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
@shankhaneeldutta4617
@shankhaneeldutta4617 Жыл бұрын
Such a wonderful explanation with least effort...is very rare !!! Thank you so much Tohfiq 😘😘😘😘😘
@Notunes
@Notunes Жыл бұрын
Absolute best tutorial for beginners, Thank you ☺️
@hakimdanyal2129
@hakimdanyal2129 2 жыл бұрын
Damn this was insanely good and easy. Amazing explanation and great job!
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Hakim
@purushottamarasankula5059
@purushottamarasankula5059 9 ай бұрын
The best video i have found for web scrapping 🙏
@BurnLai
@BurnLai 2 жыл бұрын
the clearest teaching to web scraping. Thankyou very much.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Lai 🙏🏼 So glad you liked it..
@theforlorned8293
@theforlorned8293 2 жыл бұрын
This was the most helpful educational webscrape video I’ve watched, thank you
@techTFQ
@techTFQ 2 жыл бұрын
Thank you :)
@RS-vu5um
@RS-vu5um 2 жыл бұрын
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.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you buddy… I am so glad to read this feedback 🙏🏼
@joelngige5776
@joelngige5776 Жыл бұрын
Great!!! video on web scrapping I have watched other KZbin videos about the same subject but your made everything very easy to follow and understand.
@akhtarattar2744
@akhtarattar2744 Жыл бұрын
Best video to learn webscrapping ,very easily taught
@Sharmasurajlive
@Sharmasurajlive 2 жыл бұрын
Clear and crisp explanation !! Kudos. Keep up the good work👍
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Suraj 🙏🏼
@ShubhamKumar-xt3vi
@ShubhamKumar-xt3vi 2 жыл бұрын
Great work, finally understood the code for Web scrapping
@pratiknale6993
@pratiknale6993 Жыл бұрын
Aag laga diye bro!!!🔥❤‍🔥🔥
@sadakagaja
@sadakagaja Жыл бұрын
Thank you sir Using your video/content my first web scraping
@johnfife1168
@johnfife1168 Жыл бұрын
Super helpful, especially writing out the results to Excel.
@vijayaraghavanselvaraj2711
@vijayaraghavanselvaraj2711 2 жыл бұрын
Thank you so much, was searching this kind of simple explanation for so long.
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome 🙏🏼 Glad you liked it
@dma6481
@dma6481 2 жыл бұрын
Best and simplest tutorial so far. I strongly recommend it
@techTFQ
@techTFQ 2 жыл бұрын
Thank you 😀
@ayeshafathima5554
@ayeshafathima5554 Жыл бұрын
This was an excellent tutorial with great explanation. Perfect for beginners.
@saurabhgope
@saurabhgope 2 жыл бұрын
Beautifully explain. Thanks and keep up the good work of helping others ☺️
@arielwendichansky5265
@arielwendichansky5265 2 ай бұрын
Genious! you really helped me out I understand this much better now!
@abhikdebbarman
@abhikdebbarman 2 жыл бұрын
Thank you for this video, very very helpful and detailed with well explanation of each step. Please continue to create such content.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Abhik for the feedback 🙏🏼 Glad this helped you 🙂 Sure, will keep doing my best ..
@AnilkumarPaturu
@AnilkumarPaturu Жыл бұрын
very detailed explanation. Thanks Toufiq
@TaLha-uc3eb
@TaLha-uc3eb Жыл бұрын
One of the best video I ever seen on this topic
@ahanaroshan7741
@ahanaroshan7741 2 жыл бұрын
Awesome this should reach many people , many views . Worth it. Came back after your Sql content
@techTFQ
@techTFQ 2 жыл бұрын
Thank you so much for your kind words 🙏🏼 So glad you liked the video 🙏🏼☺️
@sg8581
@sg8581 4 ай бұрын
BeautifulVideo. Very informative.
@BabatundeRaheem
@BabatundeRaheem Жыл бұрын
Thank you . I wished i came across your channel this time last week, I would have gotten a DS job
@kamilmohammed9722
@kamilmohammed9722 Жыл бұрын
It's different than other videos and i learnt a lot. Thanks
@studybuddies697
@studybuddies697 Жыл бұрын
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
@abbastechtalks
@abbastechtalks Жыл бұрын
Thank you for this amazing video. I did my first web-scraping in python :)
@techTFQ
@techTFQ Жыл бұрын
Awesome bro, Glad it helped
@eshwarpalatli5143
@eshwarpalatli5143 2 ай бұрын
The way you explained is soo simple and easy to understand thank you soo much
@nimnanilwala5245
@nimnanilwala5245 2 жыл бұрын
Excellent work sir. Thank you so mutch.
@Hichamabid
@Hichamabid 10 ай бұрын
Excellent explanation! Thank you!
@learnwitharbia3477
@learnwitharbia3477 Жыл бұрын
Thank you so much! This is just amazing!
@MalayKhandkar
@MalayKhandkar Жыл бұрын
Thank you so much!! Enjoyed the tutorial a lot
@vicentesoto1628
@vicentesoto1628 Жыл бұрын
Definetly excellent straight and concise application Thank you techTFQ
@kevin3447
@kevin3447 Жыл бұрын
Thank you so much for this tutorial. Really helpful one. God bless you!!😊
@lakshminarayanan5912
@lakshminarayanan5912 2 жыл бұрын
finally done .thanks a lot for sharing this video
@soumyadip112
@soumyadip112 2 жыл бұрын
Amezing ! I just wanted this . Thank you ❤️
@techTFQ
@techTFQ 2 жыл бұрын
Thanks a lot for the feedback 🙏🏼 So glad you found it helpful ☺️
@nikhilreddy4582
@nikhilreddy4582 Жыл бұрын
How boss..., literally damn good explanation....💯💯💯
@Zydres_Impaler
@Zydres_Impaler Жыл бұрын
thanks a lot, the best intro to web scraping.
@27ayhel
@27ayhel Жыл бұрын
Thanks! this video is very useful. God bless
@YoussefMrabetYMF68
@YoussefMrabetYMF68 Жыл бұрын
Awesome, thank you very much, for this excellent tutorial...!
@neondemon3304
@neondemon3304 Жыл бұрын
thankyou so much sir............this tutorial really helped me in learning something new.
@maxee5908
@maxee5908 Жыл бұрын
Good web scrapping video
@mirzaimadbaig
@mirzaimadbaig Жыл бұрын
thx for the tutorial it helped me immensely
@deelovely7565
@deelovely7565 Жыл бұрын
This was a ton helpful. Thank you so much!
@techTFQ
@techTFQ Жыл бұрын
Glad it helped
@devbites77
@devbites77 2 жыл бұрын
Beautifully explained! Next step, I am interested in scrapping dynamic websites.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you 🙏🏼 Glad you liked it 🙂
@davidkiplangat2590
@davidkiplangat2590 Жыл бұрын
Hey, you are just smart, i loved it.
@anduamlaktadesse9284
@anduamlaktadesse9284 2 жыл бұрын
Well explained sir! Thank you so much sir!
@ketankumar5689
@ketankumar5689 11 ай бұрын
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.
@fmtgamers
@fmtgamers Жыл бұрын
Superb Explanation!
@shruthig8817
@shruthig8817 2 жыл бұрын
Thank you for this amazing session!
@techTFQ
@techTFQ 2 жыл бұрын
Glad you liked it
@ahabweandrew
@ahabweandrew 2 жыл бұрын
Bro, you are amazing !!
@sahilgogna3393
@sahilgogna3393 2 жыл бұрын
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
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Sahil .. Definitely bro you can
@amitsaini1109
@amitsaini1109 Жыл бұрын
Thank you so much for explaining easily and this helps me
@sateeshsunkara3
@sateeshsunkara3 7 ай бұрын
Loved the way you explained everything !! One of the best tutorial on Web Scraping 🎉🎉🎉
@techTFQ
@techTFQ 6 ай бұрын
Glad it was helpful!
@misskisulkens8075
@misskisulkens8075 Жыл бұрын
Thank you, friend!
@basavarajnh9550
@basavarajnh9550 Жыл бұрын
Thank you so much man it helps me alot,
@open-source243
@open-source243 2 жыл бұрын
Thanks for your efforts ... It is a excellent tutorial :)
@osoriomatucurane9511
@osoriomatucurane9511 7 ай бұрын
Awesome tutorial, crystal clear, the best one of its class by all standards.
@techTFQ
@techTFQ 6 ай бұрын
Glad you think so!
@Sandunbalage
@Sandunbalage 2 жыл бұрын
Excellent. Thank you
@mdomarfaruq8945
@mdomarfaruq8945 2 жыл бұрын
Excellent tutorial. Explain everything very well. Thank you
@techTFQ
@techTFQ 2 жыл бұрын
Thank you buddy
@lingamarunachalam
@lingamarunachalam 2 жыл бұрын
Beautiful session, was very useful to learning about data scraping.😊
@techTFQ
@techTFQ 2 жыл бұрын
Glad you liked it ☺️
@MrBonbatong
@MrBonbatong 5 ай бұрын
Great explanation, thanks for sharing!
@shubhamawale4881
@shubhamawale4881 2 жыл бұрын
The explanation is bit by bit, Fabulous.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you 🙏🏼 Glad you liked it
@limitless582
@limitless582 Жыл бұрын
spectacular video
@aromals8564
@aromals8564 2 жыл бұрын
Thank you! Nicely explained! 👍
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome 🙏🏼 Glad this helped
@charanvenugopal2197
@charanvenugopal2197 Жыл бұрын
Awesome explanation, just subbed to the channel.... Great Content
@theorganics5427
@theorganics5427 Жыл бұрын
Really interesting video I have learnt a lot about how things can be done in real world.
@avinashshinde2659
@avinashshinde2659 Жыл бұрын
thanks for the video,easy to grasp the concept
@Codewithteck223
@Codewithteck223 5 ай бұрын
Easiest one, thanks❤
@wellingtonsantana9470
@wellingtonsantana9470 2 жыл бұрын
Amazing content. Thank you very much!
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome 🙏🏼 Glad you liked it
@dimi_ga
@dimi_ga 8 ай бұрын
Great video, thanks a lot 🎉😊
@yuyuchung
@yuyuchung 2 жыл бұрын
Straightforward! thanks.
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome 🙏🏼 Glad you liked it..
@aliboughazi7037
@aliboughazi7037 Жыл бұрын
You saved me bro, thanks!
@techTFQ
@techTFQ Жыл бұрын
Glad this helped
@suke933
@suke933 2 ай бұрын
Very very informative... ❤❤
@ai_anisha3118
@ai_anisha3118 2 жыл бұрын
Thank you so much , I executed perfectly 🤩🤩 no error . Awesome, saved my day 😍😍
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome 🙏🏼 It’s nice to hear ☺️
@sanjubell
@sanjubell 2 жыл бұрын
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
@drkrueger
@drkrueger Жыл бұрын
Crystal clear and excellent presentation. Thank you!
@techTFQ
@techTFQ Жыл бұрын
Glad it was helpful!
@drkrueger
@drkrueger Жыл бұрын
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?
@techTFQ
@techTFQ Жыл бұрын
Nope beautiful soup cannot do it but you can use selenium for that
@drkrueger
@drkrueger Жыл бұрын
@@techTFQ Thank you!
@Pawan-tc2ih
@Pawan-tc2ih 2 жыл бұрын
Great Tutorial with nice explanation!!🙌
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Pawanya 🙏🏼
@vijaykumarkammar3300
@vijaykumarkammar3300 Жыл бұрын
Best video , explained very well
@mohammedshahil4898
@mohammedshahil4898 3 жыл бұрын
This was very interesting🤓 Really enjoyed understanding web scrapping👌👌
@techTFQ
@techTFQ 3 жыл бұрын
Thanks a lot Shahil ❤️❤️ Glad you understood it..
Python WEB SCRAPING in 30 Seconds! 🔥👨‍💻 #shorts
0:32
truthybyte
Рет қаралды 294 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 771 М.
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 7 МЛН
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 100 МЛН
Python Tutorial: Web Scraping with BeautifulSoup and Requests
45:48
Corey Schafer
Рет қаралды 1,1 МЛН
SQL Interview Problem asked during Amazon Interview
15:15
techTFQ
Рет қаралды 9 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 267 М.
Web Scraping to CSV | Multiple Pages Scraping with BeautifulSoup
29:06
Web Scraping with ChatGPT is mind blowing 🤯
8:03
Code Bear
Рет қаралды 35 М.
BeautifulSoup + Requests | Web Scraping in Python
6:58
Alex The Analyst
Рет қаралды 105 М.
Find and Find_All | Web Scraping in Python
12:10
Alex The Analyst
Рет қаралды 48 М.
Web Scraping with Python and BeautifulSoup is THIS easy!
15:51
Thomas Janssen | Tom's Tech Academy
Рет қаралды 19 М.
Scraping Data from a Real Website | Web Scraping in Python
25:23
Alex The Analyst
Рет қаралды 366 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 771 М.