Click to See Complete Forum and Search --> : Accessing Internet Commands through a Script
Trogdor
12-15-2003, 10:54 PM
I need to write a script that will perform the following actions (it could use lynx or whatever):
-go to a website
-fill in some fields
-refresh the page
Are their any programs that can allow one to access these functions through a bash script?
jim mcnamara
12-16-2003, 11:11 AM
What exactly are you trying to do? Download data?
Assume you have a file - src that has the keystrokes you want
lynx www.somesite.com -accept_all_cookies -cmd_script=src
freakmn
12-16-2003, 11:54 AM
Just curious, you don't do Gentoo (http://forums.gentoo.org/viewtopic.php?t=41214), do you? j/k
Stuka
12-16-2003, 02:37 PM
Not sure about bash, but I'm fairly certain that Perl has a web form module that will do that kind of thing.
Trogdor
12-16-2003, 07:40 PM
I do gentoo. But this compydore isn't running gentoo.
I'll look into perl.
Here is what I am trying to do (it's for my brother):
- go to a forum
- log in
- go to a profile page in the forum
- refresh until the script terminates
(increase the hit count of a profile. Above 11000.)
Stuka
12-19-2003, 10:47 AM
OK, I think your brother needs a non-online life! :rolleyes: