We extend the StatWatch worker we just built to regularly pull in data from Alexa site rankings and log it along with the data it was already getting from the YouTube Data API.
Since the site ranking data is given in XML, we'll add SweetXml to our mix project for parsing.
(Source code available for premium members)
3 Comments
Very useful to see how to handle XML responses. Looks like Alexa are no longer serving stats responses to the URL used in the example though.
Here's the code that's running in production right now:
You can see it here: https://statwatch.me/profiles/alchemist
Nice one again ! Thanks !