Skip Menu |

This queue is for tickets about the WWW-Myspace CPAN distribution.

Report information
The Basics
Id: 18917
Status: resolved
Worked: 15 min
Priority: 0/
Queue: WWW-Myspace

People
Owner: GRANTG [...] cpan.org
Requestors: jprcraigslist [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Error on friend adder
When trying to run on OS X 10.4.5 with perl v5.8.6 WWW::Myspace Version 0.42 using WWW::Myspace::FreindAdder Version 0.05 I've attached my .pl file I get to the username prompt fine, then put in username/pwd it says Day too big - 2932896 > 24855 Sec too big - 2932896 > 11647 (which I typically get) It usually then starts to run but recently as of 4/25/06 it has said this at this point: Didn't get user_name at /Library/Perl/5.8.6/WWW/Myspace.pm line 3375, <STDIN> line 2. So I tried to do something simple like just login with the following: use WWW::Myspace; my $myspace = new WWW::Myspace; print $myspace->account_name; $myspace->account_name( 'other_account@myspace.com' ); $myspace->password( 'other_accounts_password' ); $myspace->site_login; Again get past username/pwd and get: Day too big - 2932896 > 24855 Sec too big - 2932896 > 11647 Got "not logged in" page Got "not logged in" page Got "not logged in" page Got "not logged in" page Got "not logged in" page The "Got not logged in page" loops. Thanks, hope this helps Justin:)
Subject: add_longwave.pl
use WWW::Myspace; use WWW::Myspace::FriendAdder; # see WWW::Myspace docs for more info on user/pass usage my $myspace = WWW::Myspace->new(); my $adder = WWW::Myspace::FriendAdder->new( $myspace ); # or pass some startup parameters my %startup_params = ( exclude_my_friends => 1, # interactive => 0, max_count => 150, random_sleep => 10, # config_file => '/path/to/config_file.cfg', ); my $adder = WWW::Myspace::FriendAdder->new( $myspace, \%startup_params, ); # find all of Shania Twain's friends # (hey, you've got your reasons...) my @friend_ids = $myspace->friends_from_profile('19128879'); # now, ask Shania's friends to be your friends $adder->send_friend_requests( @friend_ids);
This is what happens when the module can't log in, usually due to an invalid username or password. Make sure you can log in on a web browser using the exact same username and password. I've updated the Known Issues section of the module, as it should return an appropriate error instead of just looping "Got not logged in page". (Note that it will do that about 20 times, then stop). btw, In your attached code you're logging in twice. You should eliminate the first call to "new WWW::Myspace" as it's being replaced by the second call, which has your settings. (The docs are showing two methods of creating the object, not suggesting that you should do it twice). Grant On Tue Apr 25 11:48:28 2006, guest wrote: [...] Show quoted text
> Again get past username/pwd and get: > Day too big - 2932896 > 24855 > Sec too big - 2932896 > 11647 > Got "not logged in" page > Got "not logged in" page > Got "not logged in" page > Got "not logged in" page > Got "not logged in" page > > > The "Got not logged in page" loops. >