-
Notifications
You must be signed in to change notification settings - Fork 18
PubmedTrending
#Pubmed 'Trending Articles' as a RSS feed.
Last tested: 2015-04-17. It will not work if the NCBI change the layout/style of the HTML page.
you need to create a .cgi
for apache that will download the HTML page http://www.ncbi.nlm.nih.gov/pubmed/trending/
In my linux workstation I've created a file pubmedtrending.cgi
in /var/www/cgi-bin
. This file has been made executable and is visible from apache httpd as a CGI application.
The content of pubmedtrending.cgi is:
#!/bin/sh
echo "Content-Type: application/rss+xml"
echo
curl -sLk "http://www.ncbi.nlm.nih.gov/pubmed/trending/" |
xsltproc --novalid --html pubmedtrending2rss.xsl -
I've copied the xslt-stylesheet https://github.com/lindenb/xslt-sandbox/blob/master/stylesheets/bio/ncbi/pubmedtrending2rss.xsl in /var/www/cgi-bin
.
The RSS feed is now available from http://localhost/cgi-bin/pubmedtrending.cgi . This URL can be imported in a local RSS reader like Thunderbird.