Screen scraping a 3270 terminal?
Kareem Shehata
kareem-d+8TeBu5bOew5LPnMra/2Q at public.gmane.org
Mon Jan 14 14:22:27 UTC 2008
> -----Original Message-----
> From: owner-tlug-lxSQFCZeNF4 at public.gmane.org [mailto:owner-tlug-lxSQFCZeNF4 at public.gmane.org] On Behalf Of Lennart
> Sorensen
> Sent: Wednesday 09 January 2008 13:46
> To: tlug-lxSQFCZeNF4 at public.gmane.org
> Subject: Re: [TLUG]: Screen scraping a 3270 terminal?
>
> On Wed, Jan 09, 2008 at 12:50:44PM -0500, Aaron Vegh wrote:
> > I have a client who wants me to scrape information from a number of
> > web-located resources (they're all internal to their network). That's
> > doable, but among the resources are two 3270 terminal sessions that
> > have to be logged into, navigated through and then scraped.
> >
> > My normal procedure is to use curl to snatch and parse HTML from a
> > site, and it will suffice for the rest of the job. But how does one
> > programmatically parse through an old green screen application?
>
> expect works well for interactive text thingies.
Could chat not be used for this as well? It's a simplistic approach, but
depending on the application, it might just do the trick.
I've heard that expect is a powerful tool, but has a steep learning curve.
Good luck!
-kms
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list