Simple BeautifulSoup4 & Requests Intro Project - Five Minute Python Scripts


Simple BeautifulSoup4 & Requests Intro Project - Five Minute Python Scripts

*

Full Code From This Example:


YouTube Description:

Hey Everyone! In this one we'll do an intro level BeautifulSoup/Requests script. We'll pull out an instagram image's source code, find an image, and get the full sized one. Let me know what type of projects you would like to see with BeautifulSoup and Requests and I'll be happy to make them! Thanks so much for the continued support across the videos. You all are awesome. 4180+ subscribers at the time of writing. How AWESOME! Thank you all so much. ***************************************************************** Full code from the video: import requests from bs4 import BeautifulSoup import webbrowser url = 'https://www.instagram.com/p/Bz8RbKcgY90/' response = requests.get(url) soup = BeautifulSoup(response.text) image = soup.find("meta", property="og:image") image_url = image['content'] webbrowser.open(image_url, new=0, autoraise=True) https://github.com/Derrick-Sherrill/DerrickSherrill.com/blob/master/instagramimage.py ***************************************************************** Code from this tutorial and all my others can be found on my GitHub: https://github.com/Derrick-Sherrill/DerrickSherrill.com Check out my website: https://www.derricksherrill.com/ If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!! Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!

Enjoy this content? Consider Subbing to the Youtube channel





Derrick Sherrill

By: Derrick Sherrill

Thanks for visiting my page! I'm working hard to make the best content I can for you. I love watching people learn and teaching others. Happy Coding!

Become a Patreon!