Skip to content

Instantly share code, notes, and snippets.

@jonasbits
Last active December 20, 2015 18:48
Show Gist options
  • Save jonasbits/6178559 to your computer and use it in GitHub Desktop.
Save jonasbits/6178559 to your computer and use it in GitHub Desktop.
Trying to identify http links in Twitter export, and add the ability to click them
Grailbird.data.tweets_2011_07 =
[ {
"source" : "<a href=\"http://www.google.com/\" rel=\"nofollow\">Google</a>",
"entities" : {
"user_mentions" : [ {
"name" : "YouTube",
"screen_name" : "YouTube",
"indices" : [ 10, 18 ],
"id_str" : "10228272",
"id" : 10228272
} ],
"media" : [ ],
"hashtags" : [ ],
"urls" : [ {
"indices" : [ 25, 52 ],
"url" : "http://youtu.be/GpqsypjIyVQ",
"expanded_url" : "http://youtu.be/GpqsypjIyVQ",
"display_url" : "youtu.be/GpqsypjIyVQ"
}
]
},
"geo" : {
},
"id_str" : "97405776657784833",
"text" : "I liked a @YouTube video http://youtu.be/GpqsypjIyVQ?a Kid gets tricked",
"id" : 97405776657784833,
"created_at" : "Sat Jul 30 20:38:41 +0000 2011",
"user" : {
"name" : "Jonas Anton \u00D6stman",
"screen_name" : "jonasbits",
"protected" : false,
"id_str" : "123941128",
"profile_image_url_https" : "https://si0.twimg.com/profile_images/841446861/msn_jonas_gas_sunfleet_normal.JPG",
"id" : 123941128,
"verified" : false
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment