So I have been working on a little script to alert me when an artist releases a new album using amazon and elinks.
Problem is that for some reason elinks will stop half way through the -dump command and not finish. Hopefully someone can see what I am missing.
An example of the command I am using is:
elinks -dump https://www.amazon.com/s/ref=sr_nr_p_lbr_music_artists__0?fst=as%3Aoff&rh=i%3Aaps%2Ck%3Athe+prodigy%2Cp_lbr_music_artists_browse-bin%3AThe+Prodigy&keywords=the+prodigy\&ie=UTF8&qid=1466468403&rnid=3458810011 > artist.cache
For reference I plan on sending this through a loop that will go through a file and search all the artist on the list like so (note the $artist)
https://www.amazon.com/s/ref=sr_nr_p_lbr_music_artists__0?fst=as%3Aoff&rh=i%3Aaps%2Ck%3A$artist%2Cp_lbr_music_artists_browse-bin%3A$artist&keywords=$artist&ie=UTF8&qid=1466468403&rnid=3458810011
Then its just going to use grep and date to post the matching line and artist/album to a text file.
So if anyone sees what I am doing wrong I will appricate the help, or if you have an easier idea of how to do get the text from the webpage to a file please let me know as well.
Thanks,
Asked by NeonLines
(13 rep)
Jun 21, 2016, 12:35 AM
Last activity: Jun 21, 2016, 05:23 AM
Last activity: Jun 21, 2016, 05:23 AM