LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2009, 08:46 PM   #1
testbot
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
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!!!
 
Old 09-03-2009, 03:36 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
What does the response look like. Need to see the form data looks like.
 
Old 09-03-2009, 04:55 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Curl may be easier to use wrt form fields?
 
Old 09-03-2009, 09:13 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,247

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Perl has a great module http://search.cpan.org/~petdance/WWW...W/Mechanize.pm that automates talking to websites.
 
Old 09-04-2009, 01:16 AM   #5
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
So does Python... 8^p

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio Processing Tool Command Line To Extract Play Length? lindylex Linux - Software 6 03-10-2009 10:26 PM
multi-line text processing pcock Programming 1 03-01-2009 08:31 PM
processing each line of output in Bourne shell? ocicat Programming 11 08-01-2007 02:47 AM
LXer: Don't overlook efficient C/C++ command line processing LXer Syndicated Linux News 0 07-28-2007 09:31 PM
Is it possible to save a website, all links included, from the command line? rm_-rf_windows Linux - General 7 06-29-2007 05:45 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration