Jules-WinnfieldX / CyberDropDownloader

Bulk Gallery Downloader for Cyberdrop.me and Other Sites
GNU General Public License v3.0
1.61k stars 182 forks source link

[BUG] SimpCity login using session cookie not working #539

Closed ductai199x closed 1 year ago

ductai199x commented 1 year ago

Describe the bug I was not able to scrape the SimpCity forum using the new login session feature.

To Help Reproduce Steps to help reproduce the behavior:

  1. Using Google Chrome, log in to SimpCity using username and password
  2. Open Cookie Editor, grab value for the xf_session field of the cookie for simpcity.su
  3. Use this value with command cyberdrop-dl.exe --simpcity-xf-session-cookie <cookie>
  4. Get Error
  5. Open downloader.log and see:
    2023-08-08 19:07:53,861:DEBUG:Xenforo_Spider:Xenforo_Spider.py:209:Error encountered while handling ...
    Traceback (most recent call last):
    File "C:\Python39\lib\site-packages\cyberdrop_dl\crawlers\Xenforo_Spider.py", line 206, in fetch
    await self.forums[domain].login(session, url, parse_spec, self.quiet)
    File "C:\Python39\lib\site-packages\cyberdrop_dl\crawlers\Xenforo_Spider.py", line 120, in login
    raise FailedLoginFailure()
    cyberdrop_dl.base_functions.error_classes.FailedLoginFailure: Failed login.

Setup Information

Jules-WinnfieldX commented 1 year ago

I will not be offering walk through support for this. It is confirmed working through both config and CLI. The only thing I can tell you is to wrap it in quotes, and only paste the actual value itself, not value: CODE. You just want the code.

This will be made easier in the upcoming rewrite.

ductai199x commented 1 year ago

I did exactly that, copying only the value itself, wrapped it in quotes but it's not working for me for some reason. Also, I tried the command both normally and with a VPN but that didn't work either

Jules-WinnfieldX commented 1 year ago

Try using one of the two browsers I mention in the FAQ

ductai199x commented 1 year ago

yep, I tried both Google Chrome and Firefox. I did say in my original report that I used Chrome.

Jules-WinnfieldX commented 1 year ago

The only other advice I can give you, is make you aren't exporting the *.simpcity

vajdao commented 1 year ago

Also, make sure that config.yaml 's first line:

Apply_Config: false is set to true It's very easy to miss this one out ;)

ClonedBoy commented 1 year ago

I think it might be what I was experiencing with other browser other than Firefox.

https://github.com/Jules-WinnfieldX/CyberDropDownloader/issues/536#issuecomment-1670432674

vajdao commented 1 year ago

I noticed that the OP exported xf_session cookie string instead of xf_user, despite it being mentioned here, however the documentation has changed since then, so the OP had different information back then (xf_session) - this revision in the documentation version prooves him/her.

ClonedBoy commented 1 year ago

You are correct. With the current version and the use of xf_user, it seems to be working normally with the exported value from Brave - at least for me. xf_session not required at the moment, haven't had that issue with the value anymore.

vajdao commented 1 year ago

You are correct. With the current version and the use of xf_user, it seems to be working normally with the exported value from Brave - at least for me. xf_session not required at the moment, haven't had that issue with the value anymore.

I'm glad to hear that. I'm very happy I could help. Happy datahoarding, enjoy :)