Of course! WWW::Mechanize! Why didn't I think of using it? I don't know why Google never released an API when they said they would, it's quite annoying. Thanks!
On 13 January 2014 19:54, Mark Zealey <m...@itsolve.co.uk> wrote: > It's easy enough, here's some code I wrote a few weeks back: > > my $mech = $self->{mech} = WWW::Mechanize->new(); > $mech->cookie_jar(HTTP::Cookies->new()); > $mech->get('https://www.google.com/accounts/ServiceLogin'); > $mech->form_number(1); > $mech->field(Email => $USER); > $mech->field(Passwd => $PASS); > $mech->click(); > > Afterwards just ->get whatever page you want to go to next... > > Mark > > > On 13/01/14 19:54, Alan Mosca wrote: > >> Hi guys, >> >> Has anyone had experience logging into google accounts (possibly using >> LWP::UserAgent)? >> I'm trying to extract data from google trends (which doesn't have an API) >> and found some examples in Python, but they all seem outdated, so whatever >> mechanism they were using doesn't seem to work anymore. >> >> Thanks! >> >> > -- Alan