songs downloading using curl

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions songs downloading using curl
# 1  
Old 11-27-2009
songs downloading using curl

Hi ,

I need to download songs from website using shell script.I have written script for that. The code is
#!/bin/ksh
curl "http://www.songs.pk/$1.html" >tmp_page 2>tmp_error
grep songid tmp_page|cut -d'"' -f2 > song_links
while read link; do
echo $link
curl "$link" >tmp_song 2>tmp_err
done<song_links

while curling for particul song url, it not returning anything. I couldn't find the solution for this. Could you please help me.
Thanks in advance.
# 2  
Old 11-27-2009
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

There is always some time for listening nice songs :P

Hello All, Just for FUN there is always sometime for listening NICE SONG. Posting here my fav one these days :cool: movie version--> bum diggy diggy diggy bum diggy bum by music world - YouTube actual version --> Bum Diggy diggy Bum bum song - YouTube Let's have some fun with sharing... (0 Replies)
Discussion started by: RavinderSingh13
0 Replies

2. UNIX for Dummies Questions & Answers

When downloading a webpage by curl, what happen?

Hello, when im downloading an webpage from command line (CLI) by curl or wget the target website is loaded like i load it from browser? meaning target server connect to database and render data from mysql? Or only static content is downloaded? (2 Replies)
Discussion started by: postcd
2 Replies

3. Shell Programming and Scripting

Downloading of dynamically generated URL using curl and sed

I've been attempting to use curl and sed to allow for downloading a file from a dynamically generated URL. I've been able to retrieve and save the HTML of the page that does the dynamic generation of the download URL using curl but I'm very new to sed and I seem to be stuck at this part. HTML: ... (1 Reply)
Discussion started by: schwein
1 Replies

4. UNIX and Linux Applications

audio problem when playign songs

hello to all , i have a problem , actually i download realplayer and play a song , my problem is that, when i start my speaker , and play a song , i m not getting any sound , and song goes on without any sound i have fedora 9 , if any one can solve my problem then thanx very... (0 Replies)
Discussion started by: alert_every1
0 Replies
Login or Register to Ask a Question