Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to write this small script< Next Oldest | Next Newest >
piccolo Offline





Group: Members
Posts: 286
Joined: Mar. 2006
Posted: June 19 2006,20:56 QUOTE

I listen music from a radio station on internet. The title from current song can be seen on radio's website. The page playlist is updated each time that another song begin.
I want write a program that read the song title from website and automatically open the respective text file saved on my computer that has the lyric.
Considering I'm not expert programming the question is what language you recommend to use for this application?


--------------
Robin Hood used Linux
Back to top
Profile PM 
dare2dreamer Offline





Group: Members
Posts: 113
Joined: Feb. 2005
Posted: June 19 2006,22:49 QUOTE

http://tldp.org/LDP/abs/html/index.html

Bash shell scripting, to the rescue.

Assuming your lyric files and the website are in consistant formats, I bet you can simply wget the files you need and then have the script fire up a text editor with your lyrics file.


--------------
----dare2dreamer.
Back to top
Profile PM WEB ICQ AOL MSN YIM 
tedmoore99 Offline





Group: Members
Posts: 67
Joined: Mar. 2006
Posted: June 20 2006,00:25 QUOTE

I agree with Dare2Dreamer.  It looks like a shell script would do nicely.  You have helped me so much, maybe I can return the favor.  What do you need?
--Ted
Back to top
Profile PM 
piccolo Offline





Group: Members
Posts: 286
Joined: Mar. 2006
Posted: June 21 2006,10:53 QUOTE

Sometimes when I read some answers on this forum I think it is wonderful to find people so considerate. This is one of that times. Thanks sincerely.

I want to let you know that I'm learning english in self taught manner then I read the lyrics while listen the song to know so the english pronunciation. I think the melodic songs are ideal for this purpose because they have a specific timing between words more easy to listen and to remember while the music is pleasing to the listener.

The idea is, to extract only the title string from currently playing song on this "web playlist":
http://wktz.jones.edu/wktz/BSI_WKTZFM_Page.htm

With that string, to open the file such as:
"string" = titleX = filename
From this set of lyric files:
title1.txt, title2.txt,...,titleN.txt

I'm considering to use JavaScript or Bash as Dare2Dreamer said.
Any idea about how to get the string title from BSI_WKTZFM_Page.htm file is of course welcomed.

Regards.


--------------
Robin Hood used Linux
Back to top
Profile PM 
tedmoore99 Offline





Group: Members
Posts: 67
Joined: Mar. 2006
Posted: June 21 2006,13:53 QUOTE

Piccolo:
First of all, you seem to have an adequate enough understanding of English to offer help on the Forum.  I am proud of you.  Secondly, the radio station is not broadcasting right now, so I can't really look at it now.  

Get back to you later.
--Ted
Back to top
Profile PM 
8 replies since June 19 2006,20:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: How to write this small script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code