<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Newsapi on CyberSpy</title>
    <link>https://cyberspy.io/tags/newsapi/</link>
    <description>Recent content in Newsapi on CyberSpy</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 12 Nov 2017 21:32:23 -0500</lastBuildDate>
    <atom:link href="https://cyberspy.io/tags/newsapi/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Visualizing the News: Grab your PILlow</title>
      <link>https://cyberspy.io/articles/2017-11-12t213223-0500--visualizing-the-news-grab-your-pillow/</link>
      <pubDate>Sun, 12 Nov 2017 21:32:23 -0500</pubDate>
      <guid>https://cyberspy.io/articles/2017-11-12t213223-0500--visualizing-the-news-grab-your-pillow/</guid>
      <description>&lt;h3 id=&#34;a-pictures-worth-a-gazillion-bits&#34;&gt;A Picture&amp;rsquo;s Worth a Gazillion Bits&lt;/h3&gt;&#xA;&lt;h2 id=&#34;newsapi&#34;&gt;newsapi&lt;/h2&gt;&#xA;&lt;p&gt;This weekend, I tripped over a neat news REST-ful api called &lt;a href=&#34;https://newsapi.org&#34;&gt;newsapi&lt;/a&gt;. Grab an API key and you&amp;rsquo;re off to the&#xA;races.&lt;/p&gt;&#xA;&lt;p&gt;There are tons of live headlines - &lt;strong&gt;News API can provide headlines from 70 worldwide sources.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;There are basically two api endpoints:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;GET &lt;a href=&#34;https://newsapi.org/v1/articles&#34;&gt;https://newsapi.org/v1/articles&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;GET &lt;a href=&#34;https://newsapi.org/v1/sources&#34;&gt;https://newsapi.org/v1/sources&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Register for an &lt;a href=&#34;https://newsapi.org/register&#34;&gt;account&lt;/a&gt; and generate an api-key and let&amp;rsquo;s get started.&lt;/p&gt;&#xA;&lt;h2 id=&#34;accessing-the-api-with-python&#34;&gt;Accessing the API with Python&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;newsapi&lt;/strong&gt; can easily be accessed using a browser since the REST-ful method used is a &lt;strong&gt;GET&lt;/strong&gt; method. But, accessing the api&#xA;from the browser is limiting.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
