| Jmax- | file handles? you mean sockets? |
| spyroboy | uh |
| f00li5h | Jmax-: no, php lets you do $fh = open ( 'http://foo.com' ,'r'); |
| Jmax- | anyways, the php program still has to send headers |
| spyroboy | whatever fopen is |
| Jmax- | wow really? |
| spyroboy | yeah that |
| Jmax- | that's stupid |
| f00li5h | Jmax-: uri wrappers they call it |
| Jmax- | still a socket technically, but very stupid |
| jdv79 | a coworker asked me how to just get the contents of a file into a var in Java today:) he looked at his wits end... |
| f00li5h | Jmax-: no, it harvests it, and then opens a file to it locally |
| jdv79 | i just said, "make fun of perl again" |
| f00li5h | jdv79: did you suggest that he use inline perl? jdv79++ # gotta love zealotary |
| jdv79 | it was a glorious moment |
| spyroboy | Jmax-, any ideas? |
| Jmax- | well it still has security concerns and comformability concerns |
| spyroboy | how to detour this crap? |
| Jmax- | spyroboy: yes, use mechanize. it sets headers to something google will accept, all you have to do is $mech->agent_alias('Windows IE 6'); # or the like or, just copy the headers from the source of mechanize :) |
| f00li5h | spyroboy: http://search.cpan.org/~darren/DBD-Google-0.11/lib/DBD/Google.pm |
| spyroboy | Mmm |
| shorten | f00li5h's url is at http://xrl.us/u7cy |
| f00li5h | ooh, google as a db |
| Jmax- | be warned: those probably use the google soap api which is no longer supported you cannot get a key for it |
| spyroboy | f00li5h, no |
| Jmax- | (I know at least Net::Google uses the SOAP API) |
| spyroboy | f00li5h, my friend got FUCKED IN THE ASS with google's dev keys and SOAP. |
| f00li5h | spyroboy: why not? spyroboy: i'm sure he secretly enjoyed it |
| spyroboy | I don't trust google for shit when it comes to that. |
| Jmax- | DBD::Google is just a wrapper around Net::Google, which uses the defunct SOAP API |
| xbansheex | google scraping is easy and fun! |
| spyroboy | xbansheex, exactly |
| Jmax- | they now only have a "AJAX API", which requires that the script be in javascript and hosted on a specific domain, and to be executed by a web browser just use mech :) |