Beschreibung:
Practice your Python Pandas data science skills with problems on StrataScratch! https://www.stratascratch.com/?via=keith In this video we walk through web scraping in Python using the beautiful soup library. We start with a brief introduction to HTML & CSS and discuss what web scraping is. Next we start getting into the basics of the beautiful soup library. This includes how to load a webpage, the basic commands you need to know such as find & find_all, grabbing strings from an HTML elements, etc. The final section of this tutorial is a series of exercises where you can practice your skills. In this section we scrape a webpage for links, we learn how to scrape a table and load it into a pandas dataframe, and we see how you can scrape & download a web image. Hope you enjoy! I’m looking into making future videos on more complex things you can do with web scraping as well as other libraries that are helpful such as Selenium & ScraPy. Subscribe to not miss those. Join the Python Army to get access to perks! YouTube - https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join Patreon - https://www.patreon.com/keithgalli --------------------- Resources used in this video Simple webpage: https://keithgalli.github.io/web-scraping/example.html Example webpage: https://keithgalli.github.io/web-scraping/webpage.html Link to source code: https://github.com/KeithGalli/web-scraping Beautiful Soup Documentation: https://www.crummy.com/software/BeautifulSoup/bs4/doc/ CSS Selector Reference: https://www.w3schools.com/cssref/css_selectors.php --------------------- Learn more about HTML/CSS @Traversy Media HTML Crash Course: https://www.youtube.com/watch?v=UB1O30fR-EE @Traversy Media CSS Crash Course: https://www.youtube.com/watch?v=yfoY53QXEnI Codecademy: https://www.codecademy.com/catalog/language/html-css --------------------- Video timeline! 0:00 - Intro & Video Overview 1:09 - What is web scraping? 3:51 - Introduction to HTML Using the beautiful soup library (5:29) 6:31 - Loading in a webpage (requests library) 8:21 - Starting to scrape 9:18 - find & find_all methods 16:00 - Finding specific text/strings in our HTML (regex) 18:38 - Select method (CSS path selections) 25:55 - Grabbing the string/text from an HTML element 28:17 - Getting a property of HTML element (href, src, id, class, etc) 29:41 - Code navigation (parents, children, siblings) Let’s practice our skills! (33:57) 35:53 - Exercise #1: Grab all social links on webpage in 3 different ways 42:09 - Exercise #2: Scrape an HTML table into a Pandas Dataframe 53:09 - Exercise #3: Grab all fun facts that contain the word “is” 57:59 - Exercise #4: Use beautiful soup to help download an image from a webpage 1:04:20 - Exercise #5: Solve the mystery challenge!!! --------------------- Follow me on social media! Instagram | https://www.facebook.com/unsupportedbrowser Twitter | https://twitter.com/keithgalli --------------------- If you are curious to learn how I make my tutorials, check out this video: https://www.youtube.com/watch?v=LEO4igyXbLs *I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
Downloadoptionen vorbereiten
http://unidownloader.com/ Website ist der beste Weg, um ein Video oder einen separaten Audiotrack herunterzuladen, wenn Sie auf die Installation von Programmen und Erweiterungen verzichten wollen.
UDL Helper ist eine praktische Erweiterung, die sich nahtlos in YouTube, Instagram und OK.ru einfügt, um Inhalte schnell herunterzuladen.
UDL Client (für Windows) ist die leistungsstärkste Lösung, die mehr als 900 Websites, soziale Netzwerke und Video-Hosting-Sites sowie jede Videoqualität unterstützt, die in der Quelle verfügbar ist.
UDL Lite ist ein wirklich bequemer Weg, um von Ihrem mobilen Gerät aus auf eine Website zuzugreifen. Mit seiner Hilfe können Sie ganz einfach Videos direkt auf Ihr Smartphone herunterladen.
Die besten Qualitätsformate sind FullHD (1080p), 2K (1440p), 4K (2160p) und 8K (4320p). Je höher die Auflösung Ihres Bildschirms ist, desto höher sollte die Videoqualität sein. Es gibt jedoch noch weitere Faktoren zu berücksichtigen: Download-Geschwindigkeit, freier Speicherplatz und Geräteleistung während der Wiedergabe.
Der Browser/Computer sollte nicht komplett einfrieren! Sollte dies der Fall sein, melden Sie dies bitte mit einem Link zu dem Video. Manchmal können Videos nicht direkt in einem geeigneten Format heruntergeladen werden, daher haben wir die Möglichkeit hinzugefügt, die Datei in das gewünschte Format zu konvertieren. In einigen Fällen kann dieser Vorgang aktiv Computerressourcen in Anspruch nehmen.
Sie können ein Video über die Website oder die pwa-Anwendung UDL Lite auf Ihr Smartphone herunterladen. Es ist auch möglich, einen Download-Link per QR-Code mit der UDL Helper-Erweiterung zu versenden.
Der bequemste Weg ist die Verwendung des UDL Client-Programms, das die Umwandlung von Videos in das MP3-Format unterstützt. In einigen Fällen kann MP3 auch über die UDL Helper-Erweiterung heruntergeladen werden.
Diese Funktion ist in der UDL Helper-Erweiterung verfügbar. Stellen Sie sicher, dass in den Einstellungen "Video-Schnappschuss-Button anzeigen" aktiviert ist. In der unteren rechten Ecke des Players, links neben dem Symbol "Einstellungen", sollte ein Kamerasymbol erscheinen. Wenn Sie darauf klicken, wird das aktuelle Bild des Videos im JPEG-Format auf Ihrem Computer gespeichert.
Es kostet nichts. Unsere Dienste sind für alle Benutzer absolut kostenlos. Es gibt keine PRO-Abonnements, keine Beschränkungen hinsichtlich der Anzahl oder der maximalen Länge der heruntergeladenen Videos.