Closed God-damnit-all closed 5 years ago
Also tried it before and after the latest commit.
Still a problem with webrequest==0.0.60 as well
Unfortunately, I'm not using 2Captcha at this point due to difficulties getting funding into it. I've basically switched to Anti-Captcha, because they accept paypal.
Can you use the web-view workaround to auth with fa?
If I emailed you my 2captcha API key, would you fix the 2captcha problem?
As for the manual login page (if that's what you're referring to), it just displays a broken image.
Oh there's a probably useful error in the console when I navigate to that page.
404. Wat?
[2019-09-09 22:10:38,806] ERROR in app: Exception on /fa-manual-login [GET]
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python37\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python37\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python37\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Python37\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python37\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Python37\lib\site-packages\flask_httpauth.py", line 105, in decorated
return f(*args, **kwargs)
File "U:\xA-Scraper\xascraper\views\fa_manual_login.py", line 59, in fa_manual_login
request_cookies[session['uuid']] = r.cookies['b']
File "C:\Python37\lib\site-packages\requests\cookies.py", line 328, in __getitem__
return self._find_no_duplicates(name)
File "C:\Python37\lib\site-packages\requests\cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='b', domain=None, path=None"
Internal Error!
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python37\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python37\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python37\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Python37\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python37\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Python37\lib\site-packages\flask_httpauth.py", line 105, in decorated
return f(*args, **kwargs)
File "U:\xA-Scraper\xascraper\views\fa_manual_login.py", line 59, in fa_manual_login
request_cookies[session['uuid']] = r.cookies['b']
File "C:\Python37\lib\site-packages\requests\cookies.py", line 328, in __getitem__
return self._find_no_duplicates(name)
File "C:\Python37\lib\site-packages\requests\cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='b', domain=None, path=None"
Okay the commit you just pushed to fix the 2captcha key path (which I'm not sure was even broken) just made things way worse:
Setting up loggers....
done
Setup
initialized manager
Creating pool
INFO: Creating engine for process! Engine name: 'MainProcess-MainThread'
Setting up loggers....
done
Setup
initialized manager
fetch args ['fa'] <class 'list'>
ScraperBase Init
Starting up
Starting up?
Main - CRITICAL - Uncaught exception!
Main - CRITICAL - Uncaught exception
Traceback (most recent call last):
File "C:\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "U:\xA-Scraper\manage\__main__.py", line 101, in <module>
go()
File "U:\xA-Scraper\manage\__main__.py", line 95, in go
two_arg_go(sys.argv[1], sys.argv[2])
File "U:\xA-Scraper\manage\__main__.py", line 48, in two_arg_go
do_fetch([param])
File "U:\xA-Scraper\manage\scrape_manage.py", line 75, in do_fetch
do_plugin(plgname)
File "U:\xA-Scraper\manage\scrape_manage.py", line 51, in do_plugin
plg.runScraper(namespace)
File "U:\xA-Scraper\xascraper\modules\scraper_base.py", line 678, in runScraper
instance = cls()
File "U:\xA-Scraper\xascraper\modules\scraper_base.py", line 115, in __init__
super().__init__()
File "U:\xA-Scraper\xascraper\modules\module_base.py", line 38, in __init__
super().__init__()
File "U:\xA-Scraper\xascraper\status_monitor.py", line 23, in __init__
super().__init__()
File "U:\xA-Scraper\util\captcha2upload.py", line 42, in __init__
if (settings['captcha']['2captcha']['api_key'] and
KeyError: '2captcha'
The push I just made is because I'm moving the captcha solver keys around in order to support more then one solver service. You will need to fix your settings file (see the settings example for where stuff needs to go now).
Ok, I've moved all the captcha stuff into the upstream solver. It logs into FA fine for me.
Be aware, you will have to have webrequest >= 0.0.60
for this to work.
If login is still bouncing for you, take a look in the cookies.lwp
file in the project root. You should have cookies that look like they'd fit these regexes, though the cookie string format will be a bit different (python repr vs lwp format).
The manual login failure is being caused by the fact that the call to fetch the captcha is getting stuck on cloudflare. It's not getting the expected cookie on page access that you then need to attach to the captcha request.
I didn't think about handling the access-cookie-not-set condition, so derp.
Really, just fuck captchas in general, tho.
fAGet is having issues due to a DDOS attack occurring today. I have a 2Captcha API Key, so I thought I'd use that. Unfortunately it did not work.
I had to alter this log slightly to hide my login information.
This was attempted with both webrequest==0.0.58 and webrequest==0.0.59