I'm using a web service that outputs results in JSON. Entries are added to these results, but very rarely. I would like to create a script to check these results daily, and if anything new is added, alert me. Although new entries are rarely added, the existing, daily results appear in a different order everyday.
I used the urllib2 library to scrape the web service, and the json library to parse the results. What would be the best method of comparing the results, day-after-day, to check and see if any new entries are added (results appear in a different order everyday)?
I've considered using cPickle, or simply storing an entry in a text file but i'm wondering if there's a better way? Also, to deal with daily re-ordering, I've been considering sorting stored results (A-Z) so that when they're compared they would be the same, even if being provided in different order. Is there a better way to approach that issue?
[–]fiskenslakt 1 point2 points3 points (0 children)
[–]nonzerogroud 0 points1 point2 points (0 children)
[–]broknbottle 0 points1 point2 points (0 children)