deadesq wrote:
Thanks, Contrarian. I'll handle the gruntwork--your URL worked great on that series, but since my programming days pretty much ended with Fortran and IBM punch cards, how did you extract the URL for that specific photo. In other words, if I find a photo I want to sequence, how do I extract that URL? Sorry for being such a newb, but like I said, my computer programming skills are dated.
I used the Developer Tools in Chrome (specifically the "Network" tab) to sniff requests, then clicked around the photo site to see what queries were being run. The first URL for each click seems to show what was sent to pull the data.
So in this case to find that photo I searched for runner 185, which Chrome indicates sent this query (with a boatload of data about his photos):
http://rm.gamefacemedia.com/api/races/340/photos?page=1&force=false&bib_number=185&group=Note you can copy and paste this data into something like
http://jsonviewer.stack.hu/and click "Format" to make it more human readable.
Clicking the photo in this set we're actually interested in sent this URL:
http://d35l3oybk21k7h.cloudfront.net/photos/photos/6555945_race_0.5948109768047379.display.jpg?1406636962Then searching for this in the first JSON query (I just searched for the timestamp, 1406636962), gives more details about the photo:
{
"id": 6555945,
"photographer_id": null,
"tagger_id": 749,
"tagged": true,
"marked_for_deletion": false,
"reviewed_for_deletion": null,
"print_url": "//
d35l3oybk21k7h.cloudfront.net/photos/photos/6555945_race_0.5948109768047379.original.jpg?1406636962",
"original_url": "
https://gameface-upload-testing.s3.amazonaws.com/the-san-francisco-marathon-%28m%29/340-SFOMarathon/Race%202/14-340-506-05776.JPG",
"display_url": "//
d35l3oybk21k7h.cloudfront.net/photos/photos/6555945_race_0.5948109768047379.display.jpg?1406636962",
"thumb_url": "//
d35l3oybk21k7h.cloudfront.net/photos/photos/6555945_race_0.5948109768047379.thumb.jpg?1406636962",
"tags": [
],
"race_id": 340,
"orientation": "landscape",
"location_id": 2896,
"taken_at": "2014-07-27T07:41:21.000Z",
"participant_ids": [
826330
]
}
Specifically you want the "original_url", which is the link you can traverse backwards and forwards for nearby images of interest.
Hope this helps; let me know if some of this doesn't make sense.