LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-15-2005, 05:14 PM   #1
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Rep: Reputation: 30
Script to Fill In a Website


Hello all,

I am trying to write a script that will read text from a text file, then grab the focus of a browser window(Firefox in my case) and look for a text field. Then it will enter the first line of text in that text field, goto the next one, add another line of text to it.

Then when it reaches he end of the text file, it will look for a command button and "click it".

Is this possible to do in a scripting language? Which one would be best suited for this kind of work? I've used Python a little, but not for anything like this.

Any suggestions are welcome.

Thanks,
Chris
 
Old 12-15-2005, 05:39 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Look into using Perl and the WWW::Mechanize CPAN module.
From your description, it's exactly what you want.
 
  


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
Help with script to download figures from website? bruno buys Linux - Software 10 11-22-2005 05:44 PM
Website redirection script PdotROSS Linux - Networking 1 09-09-2005 01:39 PM
Script help (parse website) Vgui Linux - General 3 08-22-2005 07:37 PM
Execute Script from Website cartoonwally Linux - General 10 05-28-2004 07:39 PM
Website search script itloser Linux - Newbie 0 02-21-2003 09:44 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration