<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Scraping on Matt Thornton</title>
    <link>https://matt-thornton.net/tags/scraping/</link>
    <description>Recent content in Scraping on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 13 Apr 2020 11:32:55 +0000</lastBuildDate><atom:link href="https://matt-thornton.net/tags/scraping/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Basic web scraping with Python: Episode 3!</title>
      <link>https://matt-thornton.net/tech/basic-web-scraping-with-python-episode-3/</link>
      <pubDate>Mon, 13 Apr 2020 11:32:55 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/basic-web-scraping-with-python-episode-3/</guid>
      
        <description>&lt;p&gt;This is the third edition of this post. It was originally &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-with-a-raspberry-pi-python-and-requests&#34;&gt;an intro to web scraping with Python&lt;/a&gt; (in Python 2) using the Requests library. It was &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-part-2-thoughts-on-debugging-and-python3&#34;&gt;then updated&lt;/a&gt; to cover some extra topics and also update for Python 3.&lt;/p&gt;
&lt;p&gt;The scenario is to download the back catalogue of the excellent &lt;a href=&#34;https://magpi.raspberrypi.org/issues?page=1&#34;&gt;MagPi&lt;/a&gt; magazine which is published monthly and the PDF is available for free. More info on the background is in the original post.&lt;/p&gt;
&lt;p&gt;However, since the original post a fair bit has changed: the MagPi website was updated so the scraping broke, Python has moved on and I found that despite downloading the issues, having them on a Pi meant I never actually read them because I forgot they were there!&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Basic web scraping - Part 2: thoughts on debugging and Python3</title>
      <link>https://matt-thornton.net/tech/basic-web-scraping-part-2-thoughts-on-debugging-and-python3/</link>
      <pubDate>Mon, 13 May 2019 16:18:14 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/basic-web-scraping-part-2-thoughts-on-debugging-and-python3/</guid>
      
        <description>&lt;h3 id=&#34;update-2020-04-13-the-main-article-has-been-overhauled-and-republished&#34;&gt;&lt;strong&gt;Update: 2020-04-13. The main article has been overhauled and republished &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-with-python-episode-3&#34;&gt;here&lt;/a&gt;! Includes Python3 updates, Dropbox uploading and a code repo.&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;I&amp;rsquo;m leaving the below in place for info and posterity and for misc useful tidbits.&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;A while ago, I posted a &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-with-a-raspberry-pi-python-and-requests&#34;&gt;basic tutorial on how to do some simple web scraping&lt;/a&gt; in Python using requests and beautifulsoup.&lt;/p&gt;
&lt;p&gt;It obviously got found in Google because the hits were good. There were however, a couple of comments highlighting issues with it - Brett and Sean saying issues with “TypeError: ‘NoneType’ object is not callable”&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Basic web scraping with a Raspberry Pi, Python and Requests</title>
      <link>https://matt-thornton.net/tech/basic-web-scraping-with-a-raspberry-pi-python-and-requests/</link>
      <pubDate>Sun, 06 Jan 2019 23:11:29 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/basic-web-scraping-with-a-raspberry-pi-python-and-requests/</guid>
      
        <description>&lt;h3 id=&#34;update-2020-04-13-article-has-been-overhauled-and-republished&#34;&gt;&lt;strong&gt;Update: 2020-04-13. Article has been overhauled and republished &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-with-python-episode-3&#34;&gt;here&lt;/a&gt;! Includes Python3 updates, Dropbox uploading and a code repo.&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;I&amp;rsquo;m leaving the below in place for background, info and posterity and for misc useful tidbits.&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Update: 2019-05-13 - this has been edited to fix a little bug in the code transcript. There is also a follow-up article on working with Python3 &lt;a href=&#34;https://matt-thornton.net/tech/basic-web-scraping-part-2-thoughts-on-debugging-and-python3&#34;&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;_Update: 2019-12-16 - looks like MagPi have amended their page so the code as below won&amp;rsquo;t work directly. I&amp;rsquo;ve left it there for interest but see one of the comments which has amended code. Thanks to Dave for pointing this out!&lt;br&gt;
_&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>