LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   processing links at the command line. (https://www.linuxquestions.org/questions/linux-newbie-8/processing-links-at-the-command-line-752245/)

testbot 09-02-2009 07:46 PM

processing links at the command line.
 
i have about 400+ links that i need to process batch style.

the only problem is that there's a post form to confirm.

the link looks like this:
http://***.***.net/?p=unsubscribe&ui...73d2a99255bebe

i want to loop through all lines, execute the url a hit the 'Confirm' button.

this is a centos box so i think lynx should be able to handle it but the confirm button is catching me up.

any ideas?

THANKS!!!

JulianTosh 09-03-2009 02:36 AM

What does the response look like. Need to see the form data looks like.

unSpawn 09-03-2009 03:55 AM

Curl may be easier to use wrt form fields?

chrism01 09-03-2009 08:13 PM

Perl has a great module http://search.cpan.org/~petdance/WWW...W/Mechanize.pm that automates talking to websites.

JulianTosh 09-04-2009 12:16 AM

So does Python... 8^p

http://docs.python.org/library/httplib.html


All times are GMT -5. The time now is 12:08 PM.