anthracite examples: two
Using Anthracite to Build a Personal Internet Radio Station from a Web Page
Turn all the links to song preview clips into a continuous play "station" using RealPlayer
My favorite record store, Aquarius Records in San Francisco, has a fantastic "new releases" newsletter and webpage, complete with clips of the songs. But I never have time to read all the fantastically written reviews or click on all the song links...but I listen to music in the background all the time.So, I created a playlist of the songs that plays like a radio station so I can actually get a chance to conveniently hear new music I might buy from them.
Image One shows the complete process chain for this example.
There are 9 total objects in the chain, one source (the webpage), six processor objects, a result object and an export object.
The six processors are, in sequence:
1) Extract Links
(text between <a href= >)
2)grep rm
Image Two shows how we configured a processor to run the UNIX Command "/usr/bin/grep" to find just the links that have ".rm" in them
(since dot "." is a special character in regular expressions, we have to escape it with the backslash as shown in the example image)
3)absolute links
like in SEC example above, only now to the aq website
4) ramify
(find replace rm with ra, for player ram file)
byproduct: in result object, web page of array of rm links for individual listening (see below)
5) extract urls (says extract links in image)
(text between href= & > exclusive)
6) strip blank lines - Removes extra blank lines from the output.
Running this process results in two outputs, the Result Object's array, which looks like this when "Previewed" from within the Result Object sheet and this file "AquariusNewestPlaylist.ram.txt" which (due to a limitation of Anthracite) must be renamed to remove the ".txt" extension, then plays like a playlist in the RealNetworks RealOne player.
[top] [anthracite home]