Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

gmail from perl

by smalhotra (Scribe)
on Jun 14, 2004 at 15:40 UTC ( [id://366584]=perlquestion: print w/replies, xml ) Need Help??

smalhotra has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone tried to access gmail from perl? I was thinking of writing an interface but gmail uses a lot of javascript which might get tricky. Does anyone have any experience with this?

$will->code for @food or $$;

Replies are listed 'Best First'.
Re: gmail from perl
by perrin (Chancellor) on Jun 14, 2004 at 18:37 UTC
      Apropos of some recent discussions, I've got HTTP::Recorder working right now, and clicking on Javascript thingies creates only a blank line in the output log, for instance:

      $agent->get("http://www.oreilly.com/"); #go to oreilly.com #click on upper-right JS thingie; noth +ing logged $agent->get("http://www.oreilly.com/"); #back button


      If I'm missing something, please set me straight-- but I see no evidence that anything done with Javascript is captured at all by HTTP::Recorder or HTTP::Proxy.
        My guess would be that it doesn't log anything because it doesn't actually do anything that involves the server. That means it can be ignored, if the goal of the script is to grab some data from the server.
Re: gmail from perl
by DaWolf (Curate) on Jun 14, 2004 at 16:43 UTC
    Interesting question but...

    Actually gmail is not available for "mere mortals" yet, so it's kinda hard to tell which JavaScript tricks it uses or not...

    I think it's better to wait for gmail public availability so you can get your answers.

    Best regards,

    my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");
Re: gmail from perl
by chanio (Priest) on Jun 15, 2004 at 04:48 UTC
    *yosucker

    Having heard that it might work very similarly to Yahoo mail, you could have this perl script as a reference.

    Note: what is really certain is that Yahoo handles a lot of its pages with great and sofisticated Javascript.

    * https://sourceforge.net/projects/yosucker/

    .{\('v')/}
    _`(___)' __________________________

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://366584]
Approved by fireartist
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-28 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found