Date: Mon, 31 Aug 2020 22:00:00 -0400
<div class="wp-block-jetpack-markdown"><h3>Summary</h3> <p>The internet is a rich source of information, but a majority of it isn’t accessible programmatically through APIs or databases. To address that shortcoming there are a variety of web scraping frameworks that aid in extracting structured data from web pages. In this episode Attila Tóth shares the challenges of web data extraction, the ways that you can use it, and how Scrapy and ScrapingHub can help you with your projects.</p> <h3>Announcements</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> and get a $60 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!</li> <li>This portion of Python Podcast is brought to you by Datadog. Do you have an app in production that is slower than you like? Is its performance all over the place (sometimes fast, sometimes slow)? Do you know why? With Datadog, you will. You can troubleshoot your app’s performance with Datadog’s end-to-end tracing and in one click correlate those Python traces with related logs and metrics. Use their detailed flame graphs to identify bottlenecks and latency in that app of yours. Start tracking the performance of your apps with a free trial at datadog.com/pythonpodcast. If you sign up for a trial and install the agent, Datadog will send you a free t-shirt.</li> <li>You listen to this show to learn and stay up to date with the ways that Python is being used, including the latest in machine learning and data analysis. For more opportunities to stay up to date, gain new skills, and learn from your peers there are a growing number of virtual events that you can attend from the comfort and safety of your home. Go to <a href="https://www.pythonpodcast.com/conferences?utm_source=rss&utm_medium=rss">pythonpodcast.com/conferences</a> to check out the upcoming events being offered by our partners and get registered today!</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Attila Tóth about doing data extraction with web scraping.</li> </ul> <h3>Interview</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you start by explaining what web scraping is and when you might want to use it? <ul> <li>How did you first get started with web scraping?</li> </ul> </li> <li>There are a number of options for web scraping tools in Python, as well as other languages. What are the characteristics of the Scrapy project and community that have made it stand out and retain such widespread popularity?</li> <li>One of the perpetual questions with web scraping is that of copyright and content ownership. What should we all be aware of when scraping a given website?</li> <li>What are some of the most challenging aspects of crawling and scraping the web? <ul> <li>What are some of the features of Scrapy that aid in those challenges?</li> </ul> </li> <li>Once you have retrieved the content from a site, what are some of the considerations for storing and processing the data that we should be thinking about?</li> <li>How can we guard against a scraper breaking due to changes in the layout of a site, or simple updates that weren’t accounted for in the initial implementation?</li> <li>What are some of the most complicated aspects of scaling web scrapers?</li> <li>For someone who is interested in using Scrapy, what are some of the common pitfalls that they should be aware of?</li> <li>What are some of the most interesting, innovative, or unexpected projects that are built with Scrapy and ScrapingHub?</li> <li>What are the most interesting, unexpected, or challenging lessons that you have learned while working with web scrapers and ScrapingHub?</li> <li>What resources would you recommend to anyone who is looking to learn more about web scraping?</li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://www.linkedin.com/in/attilapm/?originalSubdomain=hu&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">LinkedIn</a></li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="http://mule.net/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Gov’t Mule</a></li> </ul> </li> <li>Attila <ul> <li><a href="https://github.com/lorien/awesome-web-scraping?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Awesome Web Scraping</a></li> <li><a href="https://github.com/AccordBox/awesome-scrapy?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Awesome Scrapy</a></li> </ul> </li> </ul> <h3>Closing Announcements</h3> <ul> <li>Thank you for listening! Don’t forget to check out our other show, the <a href="https://feeds.fireside.fm/pythonpodcast/rss">Data Engineering Podcast</a> for the latest on modern data management.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the mailing list, and read the show notes.</li> <li>If you’ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a> and tell your friends and co-workers</li> <li>Join the community in the new Zulip chat workspace at <a href="https://www.pythonpodcast.com/chat?utm_source=rss&utm_medium=rss">pythonpodcast.com/chat</a></li> </ul> <h3>Links</h3> <ul> <li><a href="https://en.wikipedia.org/wiki/Web_scraping?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Web Scraping</a></li> <li><a href="https://www.scrapinghub.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">ScrapingHub</a></li> <li><a href="https://en.wikipedia.org/wiki/Java_(programming_language)?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Java</a></li> <li><a href="https://www.android.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Android</a></li> <li><a href="https://scrapy.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Scrapy</a></li> <li><a href="https://jsoup.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">JSoup</a></li> <li><a href="https://htmlunit.sourceforge.io/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">HTMLUnit</a></li> <li><a href="https://www.selenium.dev/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Selenium</a></li> <li><a href="https://pandas.pydata.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Pandas</a></li> <li><a href="https://en.wikipedia.org/wiki/Robots_exclusion_standard?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">robots.txt</a></li> <li><a href="https://pptr.dev/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Puppeteer</a></li> <li><a href="https://splash.readthedocs.io/en/stable/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Splash</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fweb-scraping-essentials-episode-278%2F&action_name=When%2C+Why%2C+and+How+To+Use+Web+Scraping+In+A+Nutshell+-+Episode+278&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />