Perl

Moderators: Jonathan
Number of threads: 1236
Number of posts: 3605

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need help with grabbing links Posted by PayMePlox on 15 Apr 2008 at 11:16 AM
I need help in grabbing links.. I use WWW::Mechanize to grab links from sites and it worked very well until i got into this site:
http://sleepywood.net/forum/memberlist.php?ltr=A&pp=0&sort=username&order=asc

I tried to use WWW:Mechanize with that link but it doesnt work, I only get the links from the header menu.. Maybe because the links that i need is in a table?

Please your tips would really help me alot thnx..
Report
Re: Need help with grabbing links Posted by Jonathan on 16 Apr 2008 at 4:38 AM
: http://sleepywood.net/forum/memberlist.php?ltr=A&pp=0&sort=username&o
: rder=asc
:
When I go to that URL I am asked to log in. I'm guessing that your script isn't "logged in", as it were, so it just gets shown the login page.

Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
Report
Re: Need help with grabbing links Posted by PayMePlox on 16 Apr 2008 at 8:28 PM
: : http://sleepywood.net/forum/memberlist.php?ltr=A&pp=0&sort=username&o
: : rder=asc
: :
: When I go to that URL I am asked to log in. I'm guessing that your
: script isn't "logged in", as it were, so it just gets shown the
: login page.
:
: Jonathan
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

OH yes.. Thank you very much, yes i really need to login first.. Can you point me on the right direction on how i can do this?

1 Do i need to use cookies for this?
2 Do i need to make my own cookie or do i have to grab the cookie from the site
3 Can you point me to a link with an example of logging in to a website?

Ive search the web about cookies but all i can see is using cookies for your own server.. I really dont know if cookies is the only answer to logging in to a website, but as far as i have researched, cookies is the one i get.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.