Skip to content

Instantly share code, notes, and snippets.

@gnippy
Created August 20, 2012 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnippy/3406493 to your computer and use it in GitHub Desktop.
Save gnippy/3406493 to your computer and use it in GitHub Desktop.
Reddit Sample Payload (Activity Streams)
<entry xmlns:gnip="http://www.gnip.com/schemas/2010" xmlns="http://www.w3.org/2005/Atom">
<id>http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/</id>
<published>2012-01-10T20:19:47-07:00</published>
<updated>2012-01-10T20:19:47-07:00</updated>
<title>sahilm posted an article on Reddit</title>
<category term="ArticlePosted" label="Article Posted"/>
<link rel="alternate" href="http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/"/>
<source>
<link rel="self" type="text/xml" href="http://www.reddit.com/search.rss?q=obama"/>
<title>Reddit - Keyword - Search - obama</title>
<updated>2012-08-20T11-31-59Z</updated>
<gnip:rule>obama</gnip:rule>
</source>
<service:provider xmlns:service="http://activitystrea.ms/service-provider">
<name>Reddit</name>
<uri>http://www.reddit.com/</uri>
</service:provider>
<activity:verb xmlns:activity="http://activitystrea.ms/spec/1.0/">http://activitystrea.ms/schema/1.0/post</activity:verb>
<activity:object xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type>http://activitystrea.ms/schema/1.0/article</activity:object-type>
<id>object:http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/</id>
<title>How many Redditors are Still Supporting Obama?</title>
<content type="text/html"><!-- SC_OFF --><div class="md"><p>With all of the news about Ron Paul and his near perfection on Reddit, I was curious to know if there are people who would still vote for the President, even if Paul became the nominee (or Romney). </p> <p>As someone from the east coast, I know many who were involved in 9-11 or who had friends who died in the attacks. Reading Paul&#39;s position that he was against the killing of Osama, I honestly really don&#39;t like him.</p> <p>(I think Paul has a lot of great ideas, but I still believe Obama is a better candidate for 2012). </p> <p>Anyone on Reddit who shares my view that Obama is still better than either Paul or Romney?</p> </div><!-- SC_ON --> submitted by <a href="http://www.reddit.com/user/sahilm"> sahilm </a> to <a href="http://www.reddit.com/r/obama/"> obama</a> <br/> <a href="http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/">[link]</a> <a href="http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/">[428 comments]</a></content>
<link rel="alternate" href="http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/"/>
<link rel="enclosure" href="http://www.reddit.com/r/obama/comments/obtam/how_many_redditors_are_still_supporting_obama/"/>
</activity:object>
<author>
<name>sahilm</name>
<uri>http://www.reddit.com/user/sahilm</uri>
</author>
<activity:actor xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<link rel="alternate" type="text/html" href="http://www.reddit.com/user/sahilm"/>
<id>http://www.reddit.com/user/sahilm</id>
</activity:actor>
<gnip:matching_rules>
<gnip:matching_rule rel="source">obama</gnip:matching_rule>
<gnip:matching_rule rel="inferred">romney</gnip:matching_rule>
</gnip:matching_rules>
</entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment