-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Login #2
Comments
Unauthorized, this error is due to a block by cloudflare for login automation, for some reason they still identify the automated access, try to access with a new account or update the data sent in the header, such as the referer field. |
Eu também estou com o mesmo erro |
Então esse erro é relacionado ao bloqueio feito pela cloudflare como mencionei acima, ainda não consegui contornar isso, aceito contribuições e ideias para resolver esse imbróglio. |
In the most recent tests I did, I noticed that the mentioned error occurs a lot when using a more recent version of python, such as version 3.10, however the same does not occur in older versions of python, here I do not receive this error due to the fact that using python 3.8, of course sometimes cloudflare gives me a block, but most of the time everything works fine. |
Nos mais recentes testes que fiz, percebi que o erro mencionado ocorre demasiadamente quando se usa uma versão mais recente do python, como a versão 3.10, porém o mesmo não ocorre em versões mais antigas do python, aqui não recebo esse erro devido ao fato de usar python 3.8, claro as vezes a cloudflare me da um block, mas na maioria das vezes tudo ocorre muito bem. |
Olá, mesmo utlizando o python 3.8 e tentando com outras contas, tenho o mesmo bloqueio da Cloudfare. Com você o bloqueio voltou a acontecer? |
Pior que sim, voltou depois de uns dias usando nesse esquema, cloudflare tá muito má kkkk, mas sigo na busca de resolver esse B.O e aceito sugestões, caso alguém tenha uma solução basta fazer um commit ... |
Segun la documentacion La uniica forma es por Login by ssid, que se realiza con selenium Ya estoy corrigiendo pero no me termina de ejecutar #python import json options = webdriver.ChromeOptions() driver = webdriver.Chrome(options=options, desired_capabilities=capabilities) |
Bueno, antes que nada, gracias por su contribución, pero si no me equivoco, este mismo fragmento de código está documentado en la API de Anson, utilicé la documentación en sí https://lu-yi-hsun.github.io/quotexapi/ #get-ssid-by-selenium para intentar crear esta api, aunque aún me falta algo de conocimiento hasta que logré replicar algunas funciones, esta sin embargo es una de las más complicadas, así que siguiendo algunos consejos terminé creando una forma de obtener el ssid y las cookies usando dramaturgo, pero es posible que aún no funcione correctamente... |
Puedes actualizar tu repositorio para ver tu avance, yo igual tengo algo avanzado pero me gustaría ver lo tuyo para ver si vamos por el mismo camino. |
Guys, Try this. Using undetected chrome to by pass cloudflare and saves the cookies, ssid and user-agent in session.json, later you can use it for connecting websockets. I have a simple implementation, i will put it on separate repo import time import json cert_path = certifi.where() ssl._create_default_https_context = ssl._create_unverified_context def login_generate_session_raw():
def convert_format(input_str):
` |
Me sirve mucho, con esto podre ejecutar el repositorio que tiene @cleitonleonel, es cuestión de ver si esta completo y si funciona. |
@cleitonleonel while sending ws message history/load, params sent are index, time, period, asset everything here are straight forward except index. Can you explain how index is calculated. Is there any correlation between index and time?? The use case is, i would like to get history of otc pairs for 6 months to train my ai model. I was trying for 2 days to decode the index, no success. share your suggestion. |
I used time as an index, it was what seemed most obvious to me, but it may not be correct, however it works
|
File session.json is missing on this repo.
Can yo help me in solving this.
Autenticando usuário...
HTTP Error 403: Forbidden, Retrying in 3 seconds...
HTTP Error 403: Forbidden, Retrying in 6 seconds...
HTTP Error 403: Forbidden, Retrying in 12 seconds...
--- request header ---
GET /socket.io/?EIO=3&transport=websocket HTTP/1.1
Upgrade: websocket
Host: ws2.qxbroker.com
Origin: https://qxbroker.com
Connection: Upgrade
Accept: /
Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Sec-WebSocket-Key: NyTCcISxt4pU1zWrLjyqZg==
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
--- response header ---
HTTP/1.1 403 Forbidden
Date: Sat, 18 Mar 2023 19:26:31 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Permissions-Policy: accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(),fullscreen=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()
Referrer-Policy: same-origin
X-Frame-Options: SAMEORIGIN
Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: __cf_bm=NyKxBG9A7ldgV2B3CfFXChqbd4y3cAmszxWkBWvIsY0-1679167591-0-AeXhDjAH2LL7vKNQ6pETVRr2P+XxxLDN/U18PXQZK8z6c7uFXTH+SAqnEips0+bO79K8R/tbjMlWY27m0KTx0YI=; path=/; expires=Sat, 18-Mar-23 19:56:31 GMT; domain=.qxbroker.com; HttpOnly; Secure; SameSite=None
Server-Timing: cf-q-config;dur=6.9999950937927e-06
Vary: Accept-Encoding
Server: cloudflare
CF-RAY: 7a9fde25ddda52af-CCU
Content-Encoding: gzip
Handshake status 403 Forbidden - goodbye
False Handshake status 403 Forbidden
Traceback (most recent call last):
File "/Users/stephenpaulraj/PycharmProjects/quotex-api-py/main.py", line 154, in
login()
File "/Users/stephenpaulraj/PycharmProjects/quotex-api-py/main.py", line 9, in login
check_connect, message = client.connect()
File "/Users/stephenpaulraj/PycharmProjects/quotex-api-py/quotexapi/stable_api.py", line 139, in connect
os.remove("session.json")
FileNotFoundError: [Errno 2] No such file or directory: 'session.json'
The text was updated successfully, but these errors were encountered: