bbambiku / promo-gen Goto Github PK
View Code? Open in Web Editor NEWDiscord Promotion Generator using medal.tv api.
Discord Promotion Generator using medal.tv api.
this code gave me cancer please fix 😭
{"httpStatusCode":400,"errorId":301,"errorMessage":"Your username has been rejected"}
I installed all requirements but window closing automatically.
This is really shitty code consider looking at pep8 ( https://peps.python.org/pep-0008/ )
yea
[18:45:59] [ERROR] {"httpStatusCode":400,"errorId":301,"errorMessage":"Your username has been rejected"}
also can someone send me some working proxies... ty
can someone help with error "You can't perform this action this frequently, try again in a bit"
i started with 1 thread, just to test it, and here's what i get in return.
Exception in thread Thread-1 (generate):
Traceback (most recent call last):
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 700, in urlopen
self._prepare_proxy(conn)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 994, in _prepare_proxy
conn.connect()
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x0000023C00806DA0>, 'Connection to 154.236.168.179 timed out. (connect timeout=None)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='medal.tv', port=443): Max retries exceeded with url: /api/users (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000023C00806DA0>, 'Connection to 154.236.168.179 timed out. (connect timeout=None)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Hestia\Desktop\promo-gen-main\globy.py", line 88, in generate
register = requests.post("https://medal.tv/api/users", json={"email":email, "userName":username, "password":password}, headers={"Accept":"application/json", "Content-Type":"application/json", "User-Agent":MEDAL_USER_AGENT, "Medal-User-Agent":MEDAL_USER_AGENT}, proxies=proxies)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Samus\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='medal.tv', port=443): Max retries exceeded with url: /api/users (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000023C00806DA0>, 'Connection to 154.236.168.179 timed out. (connect timeout=None)'))
Is this because of proxys ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.