Descrizione:
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.
Stiamo preparando le opzioni di download
Il sito http://unidownloader.com/ è il modo migliore per scaricare un video o un brano audio in modo separato se si vuole fare senza installare programmi ed estensioni. L'estensione UDL Helper è un comodo pulsante che viene inserito in maniera organica nei siti YouTube, Instagram e OK.ru per scaricare velocemente i contenuti. UDL Client (per Windows) - la soluzione più potente che supporta più di 900 siti web, social network e siti di video hosting, nonché qualsiasi qualità video disponibile nella sorgente. UDL Lite è un modo comodo per accedere a un sito web dal proprio dispositivo mobile. Con il suo aiuto è possibile scaricare facilmente i video direttamente sul proprio smartphone.
I formati di qualità migliore sono FullHD (1080p), 2K (1440p), 4K (2160p) e 8K (4320p). Più alta è la risoluzione dello schermo, più alta dovrebbe essere la qualità del video. Tuttavia, ci sono altri fattori da considerare: la velocità di download, lo spazio libero e le prestazioni del dispositivo durante la riproduzione.
Il browser/computer non dovrebbe bloccarsi completamente! Se ciò accade, si prega di segnalarlo con un link al video. A volte i video non possono essere scaricati direttamente in un formato adatto, quindi abbiamo aggiunto la possibilità di convertire il file nel formato desiderato. In alcuni casi, questo processo può utilizzare attivamente le risorse del computer.
È possibile scaricare il video sul proprio smartphone utilizzando il sito web UDL Lite o l'applicazione pwa. È anche possibile inviare un link per il download tramite codice QR utilizzando l'estensione UDL Helper.
Il modo più conveniente è utilizzare UDL Client, che supporta la conversione dei video in formato MP3. In alcuni casi, gli MP3 possono essere scaricati anche tramite l'estensione UDL Helper.
Questa funzione è disponibile nell'estensione UDL Helper. Assicurati che l'opzione "Visualizza pulsante per salvare lo screenshot dal video" sia selezionata nelle impostazioni. Nell'angolo in basso a destra del player, a sinistra dell'icona "Impostazioni", dovrebbe comparire l'icona di una macchina fotografica. Facendo clic su di essa, la immagine corrente del video verrà salvata sul computer in formato JPEG.
Per niente. I nostri servizi sono assolutamente gratuiti per tutti gli utenti. Non ci sono abbonamenti PRO, né restrizioni sul numero o sulla lunghezza massima dei video scaricati.