Skip to content

Instantly share code, notes, and snippets.

@rcaetano
Created February 10, 2012 13:29
Show Gist options
  • Save rcaetano/1789648 to your computer and use it in GitHub Desktop.
Save rcaetano/1789648 to your computer and use it in GitHub Desktop.
BTC Bounty: 3BTC - Extract links/text from twitter and group by hashtag
Bounty: 3BTC
Expires: Feb 17, 2012
Submission and questions: caetano@gmail.com
Notes: Please post your source code using a public github:gist
Using Node.js, render links/text as HTML from a twitter feed and group by hashtag in alphabetical order
(All solutions submitted and winner will be listed below)
1.
2.
3.
Example URL:
http://servicename/twittername
Results:
<html>
<body>
<div id="screen_name">arsydotorg</div>
<div id="hashtags">
<div id="hashtag">
<h1>#somehashtag</h1>
<ul>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
</ul>
</div>
<div id="hashtag">
<h1>#cooking</h1>
<ul>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
</ul>
</div>
<div id="hashtag">
<h1>#development</h1>
<ul>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
<li><a href="http://the/extracted/link/from/tweet">Text from the tweet (extracting url and hashtag)</a></li>
</ul>
</div>
</div>
</body>
</html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment