UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

3.9 instantly closing

Open ghost opened this issue 6 years ago • 21 comments

Running StartDatascraper.py opens then instantly closes. Re-downloaded a couple times, still no luck. Running latest version of pip and python. 3.8 still works tho.

ghost avatar Apr 10 '20 16:04 ghost

Have you edited your config and install all requirements?

UltimaHoarder avatar Apr 10 '20 18:04 UltimaHoarder

I'm having the same problem. Only edits to config were the usual ones and all requirements are installed.

Z:\completed\Other\onlyfans>py startdatascraper.py

Z:\completed\Other\onlyfans>

Yeah I don't know why but since reinstalling my system I need to type py instead of python to start a script. This has been working for 3.8 though.

NotMyMainOne avatar Apr 11 '20 05:04 NotMyMainOne

Are you both using Linux?

UltimaHoarder avatar Apr 11 '20 14:04 UltimaHoarder

Yes for me. Well my host computer is Windows 10 with python installed but the Onlyfans folder with everything is on my Unraid machine being accessed via network drive.

NotMyMainOne avatar Apr 11 '20 16:04 NotMyMainOne

Yes for me. Well my host computer is Windows 10 with python installed but the Onlyfans folder with everything is on my Unraid machine being accessed via network drive.

Could you remove line one of this code? This might be the reason. It was added a couple of weeks ago. StartDatascraper.py is the file where the line is located. image

UltimaHoarder avatar Apr 11 '20 17:04 UltimaHoarder

That made it start but authorization fails and after the 20 attempts says "You're not subscribed to any users." before starting over again. Double checked and all information in the config is correct.

Traceback (most recent call last):
  File "startdatascraper.py", line 92, in <module>
    session = x.create_session(
  File "Z:\completed\Other\onlyfans\modules\onlyfans.py", line 518, in create_session
    r = json_request(session, link)
  File "Z:\completed\Other\onlyfans\modules\helpers.py", line 185, in json_request
    r = session.request(method, link, stream=stream)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
    conn.connect()
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 352, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\ssl_.py", line 370, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
KeyboardInterrupt

NotMyMainOne avatar Apr 11 '20 17:04 NotMyMainOne

Have you got the latest commit? I pushed one 3 hours ago which changed the auth and added new things to the config

UltimaHoarder avatar Apr 11 '20 17:04 UltimaHoarder

Just tried it and same error but showing differently. Instead of:

Auth (V1) Attempt 1/10
Access Denied
Auth (V1) Attempt 2/10
Access Denied

It's showing:

Auth (V1) Attempt 1/10
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Access Denied
Auth (V2) Attempt 1/10

Do any new settings need to be adjusted in config first this time? Also I'm assuming to get the latest commit you just need to go to download as zip on the main page correct?

NotMyMainOne avatar Apr 11 '20 18:04 NotMyMainOne

The auth is, all the same, I added two things to the config that doesn't affect the auth process. Do you have 2FA on your account?

UltimaHoarder avatar Apr 11 '20 18:04 UltimaHoarder

I do not.

NotMyMainOne avatar Apr 11 '20 18:04 NotMyMainOne

I'm getting that error now. I'll fix it.

UltimaHoarder avatar Apr 11 '20 18:04 UltimaHoarder

I fixed it by updating my user-agent.... Google Chrome updated today.

UltimaHoarder avatar Apr 11 '20 18:04 UltimaHoarder

For me, just using windows on a pc

ghost avatar Apr 11 '20 18:04 ghost

@NotMyMainOne oh so it's working now? @kyslmao69 are you using the latest commit?

UltimaHoarder avatar Apr 11 '20 18:04 UltimaHoarder

Sorry no I was just saying I was trying it there too but just tried updating the user-agent on both and neither worked. :(

NotMyMainOne avatar Apr 11 '20 18:04 NotMyMainOne

Literally the only thing I can think of is 2FA .-.

UltimaHoarder avatar Apr 11 '20 18:04 UltimaHoarder

@DIGITALCRIMINAL Just downloaded latest commit, still autocloses. 3.8 still works fine.

ghost avatar Apr 11 '20 18:04 ghost

Are you calling the script from CMD or just clicking the .py file @kyslmao69

UltimaHoarder avatar Apr 12 '20 00:04 UltimaHoarder

@kyslmao69 run StartDatascraper.py in the Python 3.8 IDLE

UltimaHoarder avatar Apr 12 '20 00:04 UltimaHoarder

Just want to update that after rolling back to 3.8 tonight I got the same error, then I checked OF again and realized the auth_hash had changed. I input the new auth_hash and it worked so I went and tried it on 3.9 and it worked there as well. So I'm thinking there was some funky change of the auth_hash that didn't show up in my browser earlier in the day but did later on. Trust me I checked it over 100x when we were troubleshooting and the auth_hash hadn't changed in the network tab.

Also I want to note 3.9 did in fact fix the issue we had in 3.8 with that error due to the text format or whatever it was on some accounts. So everything is working perfect in 3.9 latest commit. Thanks for the help and maintaining this whole thing. It's a great service.

NotMyMainOne avatar Apr 12 '20 08:04 NotMyMainOne