Hi! I'm trying to use for the first time WWW:Mechanize to login to Google Reader and download some feeds.
I've tried many different ways but it seems I can't login. After submitting the form I always get the login page again. Here's my last attempt: -- #!/usr/bin/env perl use 5.14.2; use warnings; use WWW::Mechanize; use HTTP::Cookies; my $url = 'http://accounts.google.com/ServiceLogin?service=reader'; my $username = 'ACCOUNT EMAIL'; my $password = 'ACCOUNT PASSWORD'; my $mech = WWW::Mechanize->new(); $mech->cookie_jar(HTTP::Cookies->new()); $mech->get($url); $mech->submit_form( form_number => 1, fields => { username => $username, password => $password, } ); $mech->click('signIn'); $url = ' http://www.google.com/reader/atom/feed%2Fhttp%3A%2F%2Ffeedproxy.google.com%2FTechCrunch<http://www.google.com/reader/view/#stream/feed%2Fhttp%3A%2F%2Ffeedproxy.google.com%2FTechCrunch> '; $mech->get($url); print $mech->content(); -- I've disabled two-factor authentication on this account. Thanks.