Translators for feedly

I am using feedly (http://cloud.feedly.com) as my RSS reader for Journal contents and prefer directly to save paper metadata (and pdfs) into Zetero.

I have checked the request of feedly with HTTPFox plugin in Firefox. The metadata is not stored in the html source, but in the separate GET request with application/json type which has the link (see originId or htmlUrl below).

The existing translators seems directly to parse the html codes. Is it possible to develop a translator for feedly? Is there some examples?

Any suggestion are welcome.


An example of json result:
 
{
"updated": 1378055362684,
"direction": "ltr",
"id": "feed/http://feeds.nature.com/nclimate/rss/aop",
"title": "Nature Climate Change - AOP - nature.com science feeds",
"continuation": "13fa035b80f:120994:a773c079",
"alternate": [{
"href": "http://www.nature.com/nclimate/rss/aop",
"type": "text/html"
}],
"items": [{
"id": "yEA7GMGNBrHx54NVe6a5ylmWuNNBHtCdbNBvrsGgqQI=_140da80187c:1c75b6:4a4785db",
"originId": "http://dx.doi.org/10.1038/nclimate1990",
"fingerprint": "53a60638",
"content": {
"content": "<p>The extent to which crop pests and pathogens have altered their latitudinal ranges in response to climate change remains largely unknown. Now observations of hundreds of pests and pathogens reveal an average poleward shift of 2.7±0.8 km yr−1 since 1960, supporting the hypothesis of climate-driven pest movement.<p>Nature Climate Change <a href=\"http://dx.doi.org/10.1038/nclimate1990\">doi: 10.1038/nclimate1990</a><img height=\"1\" width=\"1\" src=\"http://feeds.feedburner.com/~r/nclimate/rss/aop/~4/phYmHBzYZPY\">",
"direction": "ltr"
},
"title": "Crop pests and pathogens move polewards in a warming world",
"published": 1378055362684,
"crawled": 1378055362684,
"alternate": [{
"href": "http://feeds.nature.com/~r/nclimate/rss/aop/~3/phYmHBzYZPY/nclimate1990",
"type": "text/html"
}],
"canonical": [{
"href": "http://dx.doi.org/10.1038/nclimate1990",
"type": "text/html"
}],
"author": "Daniel P. Bebber",
"origin": {
"htmlUrl": "http://www.nature.com/nclimate/rss/aop",
"streamId": "feed/http://feeds.nature.com/nclimate/rss/aop",
"title": "Nature Climate Change - AOP - nature.com science feeds"
},
"summary": {
"content": "The extent to which crop pests and pathogens have altered their latitudinal ranges in response to climate change remains largely unknown. Now observations of hundreds of pests and pathogens reveal an average poleward shift of 2.7±0.8 km yr−1 since 1960, supporting the hypothesis of climate-driven pest movement.",
"direction": "ltr"
},
"unread": false,
"categories": [{
"id": "user/63243385-9bb0-4cd0-b299-8f22ad504680/category/Journal",
"label": "Journal"
}],
"tags": [{
"id": "user/63243385-9bb0-4cd0-b299-8f22ad504680/tag/global.saved",
"label": ""
}]
}]
}
</pre>
  • if you can get the URL for the get request from the page, sure, you can use ZU.doGet to get the JSON and then just parse it (see e.g. the imdb translator or the dpla translator for examples of parsing JSON).

    What would not currently be possible is to run the actual site translator (i.e. in your case nature) for articles from an RSS reader.
Sign In or Register to comment.