<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python on Daniel Pomfret</title>
    <link>https://pomfret.uk/tags/python/</link>
    <description>Recent content in Python on Daniel Pomfret</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Daniel Pomfret</copyright>
    <lastBuildDate>Fri, 28 Dec 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://pomfret.uk/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Scraping Imgurl.com for images!</title>
      <link>https://pomfret.uk/posts/scraping-imgurl-com-for-images/</link>
      <pubDate>Fri, 28 Dec 2018 00:00:00 +0000</pubDate>
      <guid>https://pomfret.uk/posts/scraping-imgurl-com-for-images/</guid>
      <description>&lt;p&gt;Like most of the code I write these days in my spare time, It&amp;rsquo;s usually for a little bit of fun! This time, I just wanted to get a random bunch of images from Imgurl.com to collect some &amp;ldquo;memes&amp;rdquo;. I&amp;rsquo;ll warn you now, the internet is not a nice place. People upload all sorts of random stuff to Imgurl. Be warned!&lt;/p&gt;&#xA;&lt;h2 id=&#34;lets-get-technical&#34;&gt;Let&amp;rsquo;s get technical!&lt;/h2&gt;&#xA;&lt;p&gt;Firstly, I decided to use Python 3 on an EC2 micro (AWS virtual server). Secondly, it was written in about 10 minutes. I&amp;rsquo;m sharing it for future use (if anyone dares find a legitimate reason for using it). Plus I just wanted a reason to embed GitHub&amp;rsquo;s Gist into my blog!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Shorthand If/Else (ternary) Statements - C#, C&#43;&#43;, Python &amp; PHP</title>
      <link>https://pomfret.uk/posts/shorthand-ifelse-ternary-statements-c-c-python-php/</link>
      <pubDate>Mon, 05 Dec 2016 00:00:00 +0000</pubDate>
      <guid>https://pomfret.uk/posts/shorthand-ifelse-ternary-statements-c-c-python-php/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been going through the multiple languages I know recently, and refreshing my knowledge. After working with Python for a few months, I found going back to C# very easy.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve noticed many similarities except for a few; In my opinion the ternary operator slightly differs from each language. So I&amp;rsquo;d thought I&amp;rsquo;d write these findings down for future use.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;C# &amp;amp; C++&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;variable = (input &amp;gt; 0) ? &amp;rsquo;true&amp;rsquo; : &amp;lsquo;false&amp;rsquo;;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
