Here’s a Pipe Cleaner script to convert this text list of Science Journals and converts it an OPML subscription list (here)
import module:api_csv.CSV;
CSV uri:'http://www.tictocs.ac.uk/text.php' delimeter:'\t';
items := map value:$items map:{
"title" : "{{ C1 }}",
"links" : {
"href" : "{{ C2 }}",
"type" : "text/xml",
"rel" : "alternate",
}
};
I decided not to use the “header name” feature of the CSV command because I had to remap anyway to create the links object. This has to be run with the following command (or from the web UI):
pc --format opml science-journals
Of course, this is a little unwieldy in size so maybe you only want journals with “Astrophysics” in their title:
import module:api_csv.CSV;
CSV uri:'http://www.tictocs.ac.uk/text.php' delimeter:'\t';
items := map value:$items map:{
"title" : "{{ C1 }}",
"links" : {
"href" : "{{ C2 }}",
"type" : "text/xml",
"rel" : "alternate",
}
};
items := search value:$items for:"Astrophysics";
Cool, eh? Not only this, this can be run entirely from the Web Interface with selectable strings so (theoretically) a Pipe Cleaner user would have an API to this data.