Twitter 1x1 tracking gif URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was looking at the traffic New Twitter was sending across, having | |
opened Firebug to see just how wide the content was (too wide for my | |
848px-wide phone at 920px). I kept seeing 1x1 transparent .gifs, which | |
all True Patriots have been at war with since the 90s, so I was curious | |
as to what they were doing in there. There was nothing interesting in | |
the headers (except the expected six or so different ways to instruct | |
all browsers everywhere to not cache the content), but the URLs are | |
huge. | |
As far as I can tell from the five or six URLs I looked at, it's just | |
analytics data. There seems to be no harm in doing `echo | |
255.255.255.255 scribe.twitter.com >> /etc/hosts`, so I did that on the | |
machine that runs dnsmasq for the home network. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# Reads Twitter tracking links from stdin, spits out some pretty-printed JSON. | |
# Much more readable. If you want to try it out, cloning the repo and doing | |
# "./decode.rb < example-links" will run it on the links that I had, or you | |
# could paste the scribe.twitter.com URLs you find. | |
require 'uri' | |
require 'cgi' | |
require 'json' | |
loop { | |
(print "link: "; $stdout.flush) if $stdout.tty? | |
link = gets.chomp rescue exit | |
next if link.empty? | |
# This is probably fragile, but works for me as of 2011/08/06: | |
begin | |
puts JSON.pretty_unparse( | |
JSON.parse(CGI.parse(URI.parse(link).query)['log[]'][0])) | |
rescue | |
$stderr.puts "Couldn't recognize #{link}." | |
end | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://scribe.twitter.com/scribe?q=5147&log%5B%5D=%7B%22event_name%22%3A%22trend-impression%22%2C%22component%22%3A%22dashboard%22%2C%22trends%22%3A%5B%7B%22rank%22%3A0%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22%23Itreallymakesmemad%22%7D%2C%7B%22rank%22%3A1%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22Just%20A%20Friend%22%7D%2C%7B%22rank%22%3A2%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22%23WhenIWas13%22%7D%2C%7B%22rank%22%3A3%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22Valencia%22%7D%2C%7B%22rank%22%3A4%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22MuCore%22%7D%2C%7B%22rank%22%3A5%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22%23MrSimpleComebackStage%22%7D%2C%7B%22rank%22%3A6%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22FoP%22%7D%2C%7B%22rank%22%3A7%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22LADIES%20LOVE%20ME%22%7D%2C%7B%22rank%22%3A8%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22Super%20Man%22%7D%2C%7B%22rank%22%3A9%2C%22woeid%22%3A23424948%2C%22component%22%3A%22dashboard%22%2C%22input%22%3A%22click%22%2C%22trend%22%3A%22SHAWTY%20MANE%22%7D%5D%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312673865145%7D | |
https://scribe.twitter.com/scribe?q=4504&log%5B%5D=%7B%22event_name%22%3A%22stream-view%22%2C%22stream_name%22%3A%22Home%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675264639%7D&log%5B%5D=%7B%22event_name%22%3A%22subnav%22%2C%22item%22%3A%22home%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675264659%7D&log%5B%5D=%7B%22event_name%22%3A%22web%3Ahome%3Ahome%3A%3Aimpression%22%2C%22noob_level%22%3Anull%2C%22internal_referer%22%3Anull%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22client_event%22%2C%22ts%22%3A1312675264660%7D&log%5B%5D=%7B%22event_name%22%3A%22trend-impression%22%2C%22component%22%3A%22dashboard%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675268185%2C%22_truncated_for_scribe%22%3Atrue%7D&log%5B%5D=%7B%22event_name%22%3A%22whotofollow_view_recommended_users%22%2C%22recommended_users%22%3A%5B6009762%2C35761106%2C18967754%5D%2C%22recommended_users_count%22%3A3%2C%22tokens%22%3A%5B%2214%22%2C%221%22%2C%2223%22%5D%2C%22tracking_context%22%3A%22home%22%2C%22phoenix_enabled%22%3Atrue%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22whotofollow%22%2C%22ts%22%3A1312675268795%7D | |
https://scribe.twitter.com/scribe?q=1785&log%5B%5D=%7B%22event_name%22%3A%22trend-impression%22%2C%22component%22%3A%22dashboard%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675567933%2C%22_truncated_for_scribe%22%3Atrue%7D | |
https://scribe.twitter.com/scribe?q=4504&log%5B%5D=%7B%22event_name%22%3A%22stream-view%22%2C%22stream_name%22%3A%22Home%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675264639%7D&log%5B%5D=%7B%22event_name%22%3A%22subnav%22%2C%22item%22%3A%22home%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675264659%7D&log%5B%5D=%7B%22event_name%22%3A%22web%3Ahome%3Ahome%3A%3Aimpression%22%2C%22noob_level%22%3Anull%2C%22internal_referer%22%3Anull%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22client_event%22%2C%22ts%22%3A1312675264660%7D&log%5B%5D=%7B%22event_name%22%3A%22trend-impression%22%2C%22component%22%3A%22dashboard%22%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22webclient%22%2C%22ts%22%3A1312675268185%2C%22_truncated_for_scribe%22%3Atrue%7D&log%5B%5D=%7B%22event_name%22%3A%22whotofollow_view_recommended_users%22%2C%22recommended_users%22%3A%5B6009762%2C35761106%2C18967754%5D%2C%22recommended_users_count%22%3A3%2C%22tokens%22%3A%5B%2214%22%2C%221%22%2C%2223%22%5D%2C%22tracking_context%22%3A%22home%22%2C%22phoenix_enabled%22%3Atrue%2C%22page%22%3A%22home%22%2C%22_category_%22%3A%22whotofollow%22%2C%22ts%22%3A1312675268795%7D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event_name": "trend-impression", | |
"component": "dashboard", | |
"trends": [ | |
{ | |
"rank": 0, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "#Itreallymakesmemad" | |
}, | |
{ | |
"rank": 1, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "Just A Friend" | |
}, | |
{ | |
"rank": 2, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "#WhenIWas13" | |
}, | |
{ | |
"rank": 3, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "Valencia" | |
}, | |
{ | |
"rank": 4, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "MuCore" | |
}, | |
{ | |
"rank": 5, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "#MrSimpleComebackStage" | |
}, | |
{ | |
"rank": 6, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "FoP" | |
}, | |
{ | |
"rank": 7, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "LADIES LOVE ME" | |
}, | |
{ | |
"rank": 8, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "Super Man" | |
}, | |
{ | |
"rank": 9, | |
"woeid": 23424948, | |
"component": "dashboard", | |
"input": "click", | |
"trend": "SHAWTY MANE" | |
} | |
], | |
"page": "home", | |
"_category_": "webclient", | |
"ts": 1312673865145 | |
} | |