sharamfm / mdv-code-jam

0 stars 0 forks source link

Is Feed API still working #2

Open izewang opened 9 years ago

izewang commented 9 years ago

I tried to: http://codejam.airpr.com/poll?feed_id=1&poll_time=2014-07-18T23:00:00.000Z and several other time, but the return message is: {"feed_id":1,"poll_time":"2014-07-18T23:00:00.000Z","article_times":[]} I didn't find any time when there is a non-empty article_time. Am I using the wrong command?

skyshard commented 9 years ago

It is! But only for the first 100 feed_ids in the training dataset. Try

http://codejam.airpr.com/poll?feed_id=655176&poll_time=2014-07-18T23:00:00.000Z

{
  "feed_id": 655176,
  "poll_time": "2014-07-18T23:00:00.000Z",
  "article_times": [
    "2014-07-18T17:09:57.000Z",
    "2014-07-18T16:58:27.000Z",
    "2014-07-18T16:56:14.000Z",
    "2014-07-18T16:53:29.000Z",
    "2014-07-18T16:49:56.000Z",
    "2014-07-18T16:26:41.000Z",
    "2014-07-18T16:19:40.000Z",
    "2014-07-18T16:18:05.000Z",
    "2014-07-18T16:15:56.000Z",
    "2014-07-18T16:14:20.000Z"
  ]
}
skyshard commented 9 years ago

I've updated the feed API so that it works with the curl examples in the readme- note that feed_id 1 only has article entries for 2015-08, unlike the actual training data.

Also, please see https://github.com/AirPR/airpr-code-jam for further updates