<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lizard</title>
    <description>The latest articles on DEV Community by Lizard (@lizard).</description>
    <link>https://dev.to/lizard</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F439853%2F6372b6f5-51ef-43ab-acf1-a32a2909aa59.jpg</url>
      <title>DEV Community: Lizard</title>
      <link>https://dev.to/lizard</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lizard"/>
    <language>en</language>
    <item>
      <title>Circumventing news article blockers</title>
      <dc:creator>Lizard</dc:creator>
      <pubDate>Thu, 13 Aug 2020 20:17:19 +0000</pubDate>
      <link>https://dev.to/lizard/circumventing-news-article-blockers-5bao</link>
      <guid>https://dev.to/lizard/circumventing-news-article-blockers-5bao</guid>
      <description>&lt;p&gt;I wanted to read this article: &lt;a href="https://www.ocregister.com/2015/03/20/match-day-reveals-future-for-graduating-uc-irvine-medical-students/"&gt;https://www.ocregister.com/2015/03/20/match-day-reveals-future-for-graduating-uc-irvine-medical-students/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But since I had my adblocker on I could not read the article. I could have turned of my adblocker to read the article but for other websites it is not so easy. &lt;/p&gt;

&lt;p&gt;Sometimes you have to have a subscription in order to read the article. Usually I try to delete the popup box using inspect element. But some news articles blur out the text when you get the popup making it impossible to read the article even after deleting the popup. I found a neat way of being able to read such an article. &lt;/p&gt;

&lt;p&gt;Upon requesting a webpage, such articles always seem to be loaded correctly but then quickly you get a popup, text blurs etc, etc. So I thought about downloading the html source code with curl and storing it in an html document. Then you open the file and voila. It worked and this is now one of the ways I read news articles for free if I really want to.&lt;/p&gt;

&lt;p&gt;Here's a simple python script for it (for windows).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;os&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;webbrowser&lt;/span&gt;

&lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Link to article: "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;system&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s"&gt;"curl &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; &amp;gt; temp.html"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;webbrowser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'file://'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;realpath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"temp.html"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>websites</category>
      <category>trick</category>
      <category>ads</category>
      <category>articles</category>
    </item>
    <item>
      <title>Youtube tsuki moji text generator</title>
      <dc:creator>Lizard</dc:creator>
      <pubDate>Mon, 03 Aug 2020 20:35:17 +0000</pubDate>
      <link>https://dev.to/lizard/youtube-tsuki-moji-text-generator-118m</link>
      <guid>https://dev.to/lizard/youtube-tsuki-moji-text-generator-118m</guid>
      <description>&lt;p&gt;I was using a website to make tsuki moji text, but that website goes offline when it's night (in japan). I am however in Europe. So I made my own version that isn't locked by nighttime. It is located on github here: &lt;a href="https://github.com/Ben-0-mad/Youtube-text-to-emoji-generator"&gt;https://github.com/Ben-0-mad/Youtube-text-to-emoji-generator&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I suggest using this code in Jupyter notebooks as that's what I intended it for (I'm not sure emojis work in a terminal or command prompt).&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
