4
2
I want to download a forum where I only have access via my username and my password.
I tried the following:
C:\wget.exe wget -k -m -E -p -np -R viewtopic.php*p=*,memberlist.php*,faq.php*,posting.php*,search.php*,ucp.php*,viewonline.php*,*sid*,*view=print*,*start=0* -o log.txt http://www.myforum1234.com/forum/categories/discussions
So this is the command I enter in my cmd. Because when I click on the wget.exe a black window appears, but very fast disappears. But I think this is also a correct way (I use Windows XP)?
My problem is that the results show that wget could not download the forum, because it could not login. So the login page is shown (downloaded), but nothing more. I was logged in, when I exercised the command.
I am not a wget professional, so I am not sure if my command is correct? I copied this from another post. A simple C:\wget.exe wget http://www.theforumurl.com
did not work.
EDIT:
I now also tried
C:\wget.exe wget -k -m -E -p -np -R *start=0* -o log.txt http://www.myforum.com/forum/categories/discussions
But the same problem here.
2nd EDIT concerning the link in the first comment:
I now tried
C:\wget.exe wget -k -m -E -p -np -R *start=0* -o log.txt http://www.myforum.com/forum/categories/discussions --post-data="username&password=1234"
But again, same problem!
When I hoover over the login button I can see the following URL:
http://www.myforum.com/user/popupLogin
Do I have to use this one?
3rd EDIT:
I also tried to add the username:password@ before the www., so like this:
C:\wget.exe wget -k -m -E -p -np -R *start=0* -o log.txt http://user:passw@www.myforum.com/forum/categories/
The result is the same, I can see that the login did not work.
4th EDIT:
I also tried according to this thread:
C:\wget.exe wget --save-cookies cookies.txt --post-data 'user=usern&password=passw' http://www.myforum.com/user/popupLogin
C:\wget.exe wget --load-cookies cookies.txt -p http://www.myforum.com/forum/categories/
But again, same problem!!
5th EDIT:
I think I now isolated the source code of the login-button:
<div class="forumSignup">
<a href="http://www.myforum.com/user/popupLogin" class="Button SignInPopup">Login</a> </div>
6th EDIT:
I also tried it with HTTrack, but the problem is the same: The login does not work. Another problem seems to be that the forum itslef uses the URL www.mywebsite.com/forum, but the login is required for the www.mywebsite.com. So when I use e.g. something like username:pass@www.mywebsite.com the mywebsite is captured, but not the forum. When I use username:pass@www.mywebsite.com/forum the login does not work and nothing is captured.
I once used some forum software to download a forum. I don't know if one can or if one always can but this may help http://stackoverflow.com/questions/5051153/wgetting-a-forum-as-a-registered-user
– barlop – 2014-07-29T15:41:51.193If it's really important to download the forum and both
wget
andhttrack
fail it's probably time to consider using Selenium, possibly writing some code. – kqw – 2014-08-03T16:04:12.970