CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
finger control with lwp user agent

 



perlkid
stranger

May 9, 2000, 11:00 AM

Post #1 of 7 (1123 views)
finger control with lwp user agent Can't Post

 
Cure told me that when using lwp I could use LWP User Agent to gain finger control of a file.(Thanks Again Cure) I thought that it meant taking parts of the file that you want. Well now I need to get a chunk of html from an html page on a news site. It is a block of form values. So it is between the form tags.

How can I take html from a file between to tags using LWP User Agent.

Thanks Guys,

perlkid


Cure
User

May 13, 2000, 12:04 PM

Post #2 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

HI perlkid

Use a regular expression to get a certain amount of news off a page.


Cure

[This message has been edited by Cure (edited 05-13-2000).]


perlkid
stranger

May 13, 2000, 5:08 PM

Post #3 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

  
Hey Cure How have you been,

I don't know what to use though, could you help me out? This is a really big help.

Thanks Cure,

perlkid


Cure
User

May 18, 2000, 4:13 PM

Post #4 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

Hi PerlKid--> So what exaclty are you trying to do?


Cure


perlkid
stranger

May 19, 2000, 12:30 AM

Post #5 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

 
Hi Cure,

You see, there's this page on bloomberg's site and they have a form full of the currencies for every country. It updates every day. So I need to get just the values of the form to get the updated values.

The page is here.

Thanks Cure,

Also if I knew how to take pieces of html in pages I could learn how to parse search engines.

Thanks

Perlkid


TheGame+
Deleted

May 19, 2000, 6:54 AM

Post #6 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

You can probably use a simple regex to extract the different option value="..." lines. Or if you want to do it in a more fancy way, you could use the HTTP::Request::Form module to parse the contents returned by your LWP::UserAgent request - see http://theoryx5.uwinnipeg.ca/CPAN/data/HTTP-Request-Form/Form.html
Or maybe HTML::Form might be easier to use...

Note that what you intend to do may be in conflict with Bloomberg's TOS - see http://www.bloomberg.com/tos.html

As for search engines, there already are many WWW::Search modules available if you want.


perlkid
stranger

May 19, 2000, 12:24 PM

Post #7 of 7 (1123 views)
Re: finger control with lwp user agent [In reply to] Can't Post

 
I guess it does kind of conflict with their tos. So I'll have to email them and ask. I'm sure they won't have a problem If I give them a lot of credit. Thank You Very Much TheGame+, But what does Cure Think?

perlkid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives