RE: [PHP] Grabbing info from other Sites
| From: | Ow Mun Heng | Date: | Tue, 15 Jul 2003 11:58:02 +0000 |
| Subject: | RE: [PHP] Grabbing info from other Sites | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155266@lists.php.net to get a copy of this message | ||
Thanks for the info. It's a lot to digest for someone's who's just starting
out. I always thought Pear was only a Fruit.. now I know better.
I'll look through it and IF (& that's a big IF) i come up with
something, of course I'll share it.
Open Source all the way...
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-----Original Message-----
From: Joel Rees [mailto:joel@alpsgiken.gr.jp]
Sent: Tuesday, July 15, 2003 4:36 PM
To: Ow Mun Heng; php-general@lists.php.net
Subject: Re: [PHP] Grabbing info from other Sites
> The site really does
> need Login.
>
> The thing is this, I'm developing for an internal site, (My dept) but I
need
> to access other dept's site to get info but unfortunately They won't give
me
> access to query the db directly. Prefering me to go through the site and
> input accordingly to grab the data.
>
> I just find this to be "SO" troublesome as I need to get this data
> for every week. Week In.. Week Out and for a lot of items..
Screen scraping for fun and profit! Anything you can type into a form in
a web browser, you can throw at the server with a program (if you have
enough time to write the program).
In perl, there are LWP::UserAgent, HTTP::Request, HTTP::Cookies,
HTTP::Response, URI, etc.
In php, I don't see anything right offhand. But, there's always Pear,
which is becoming php's CPAN, and pear has at least these two:
http://www.pear.php.net/package-info.php?package=HTTP_Request
http://www.pear.php.net/package-info.php?package=HTTP_Client
and they look somewhat promising.
You'll probably need ssl related classes for the https stuff; it looks
like there's some support in Pear's encryption stuff. I'm sure the php
community would appreciate it if you would build and share anything
that's missing. ;->
> But I will take a look at SNOOPY. (hey.. isn't the name snoopy
> copyrighted??)
Trademarked, but only in relation to a cartoon character of a beagle and
products based on the character, I think.
--
Joel Rees, programmer, Kansai Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp