diff --git a/main.py b/main.py index 6547f83..ba9cfaf 100644 --- a/main.py +++ b/main.py @@ -1,37 +1,54 @@ -import requests, os +import requests +import os from colorama import Fore, init -def pse(): - os.system('pause') -pse() + + +def Clear(): + os.system("cls" if os.name == "nt" else "clear") + + +Clear() + init() username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}') email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}') password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}') -data = { - "birth_day": "1", - "birth_month": "01", - "birth_year": "2000", +resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={ + "birth_day": "29", + "birth_month": "06", + "birth_year": "2000", "collect_personal_info": "undefined", - "creation_point": "https://www.spotify.com/us/", - "displayname": username, - "email": email, - "gender": "male", - "iagree": "1", - "key": "a1e486e2729f46d6bb368d6b2bcda326", - "password": password, - "password_repeat": password, - "username": username, -} + "creation_flow": "", + "creation_point": "https://www.spotify.com/cl/", + "displayname": username, + "username": username, + "gender": "neutral", + "iagree": "1", + "key": "a1e486e2729f46d6bb368d6b2bcda326", + "platform": "www", + "referrer": "", + "send-email": "0", + "thirdpartyemail": "0", + "email": email, + "password": password, + "password_repeat": password +}, headers={ + "accept": "*/*", + "accept-language": "es-419,es;q=0.9", + "content-type": "application/x-www-form-urlencoded", + "sec-fetch-dest": "empty", + "sec-fetch-mode": "cors", + "sec-fetch-site": "same-site", + "sec-gpc": "1", + "referer": "https://www.spotify.com/", + "referrer-policy": "strict-origin-when-cross-origin" +}).json() -resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data) if "\"login_token\"" in resp: - print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}\nResponse: {resp.text}') - pse() - -elif "That email is already" or "Valid Email" in resp: - print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}') - pse() + print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}') +elif "That email is already" in resp: + print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email') else: - print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or disable proxy/VPN\nResponse: {resp.text}') - pse() + print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or disable proxy/VPN') + diff --git a/poetry.lock b/poetry.lock deleted file mode 100644 index 800828c..0000000 --- a/poetry.lock +++ /dev/null @@ -1,96 +0,0 @@ -[[package]] -name = "certifi" -version = "2021.5.30" -description = "Python package for providing Mozilla's CA Bundle." -category = "main" -optional = false -python-versions = "*" - -[[package]] -name = "charset-normalizer" -version = "2.0.4" -description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" -optional = false -python-versions = ">=3.5.0" - -[package.extras] -unicode_backport = ["unicodedata2"] - -[[package]] -name = "colorama" -version = "0.4.4" -description = "Cross-platform colored terminal text." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" - -[[package]] -name = "idna" -version = "3.2" -description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" -optional = false -python-versions = ">=3.5" - -[[package]] -name = "requests" -version = "2.26.0" -description = "Python HTTP for Humans." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" - -[package.dependencies] -certifi = ">=2017.4.17" -charset-normalizer = {version = ">=2.0.0,<2.1.0", markers = "python_version >= \"3\""} -idna = {version = ">=2.5,<4", markers = "python_version >= \"3\""} -urllib3 = ">=1.21.1,<1.27" - -[package.extras] -socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] -use_chardet_on_py3 = ["chardet (>=3.0.2,<5)"] - -[[package]] -name = "urllib3" -version = "1.26.6" -description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" - -[package.extras] -brotli = ["brotlipy (>=0.6.0)"] -secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"] -socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] - -[metadata] -lock-version = "1.1" -python-versions = "^3.8" -content-hash = "8ea4798172ff4b68105f12ff83bc4739315a58d0e49da34f7567fd3a76057b8b" - -[metadata.files] -certifi = [ - {file = "certifi-2021.5.30-py2.py3-none-any.whl", hash = "sha256:50b1e4f8446b06f41be7dd6338db18e0990601dce795c2b1686458aa7e8fa7d8"}, - {file = "certifi-2021.5.30.tar.gz", hash = "sha256:2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee"}, -] -charset-normalizer = [ - {file = "charset-normalizer-2.0.4.tar.gz", hash = "sha256:f23667ebe1084be45f6ae0538e4a5a865206544097e4e8bbcacf42cd02a348f3"}, - {file = "charset_normalizer-2.0.4-py3-none-any.whl", hash = "sha256:0c8911edd15d19223366a194a513099a302055a962bca2cec0f54b8b63175d8b"}, -] -colorama = [ - {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, - {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, -] -idna = [ - {file = "idna-3.2-py3-none-any.whl", hash = "sha256:14475042e284991034cb48e06f6851428fb14c4dc953acd9be9a5e95c7b6dd7a"}, - {file = "idna-3.2.tar.gz", hash = "sha256:467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"}, -] -requests = [ - {file = "requests-2.26.0-py2.py3-none-any.whl", hash = "sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24"}, - {file = "requests-2.26.0.tar.gz", hash = "sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"}, -] -urllib3 = [ - {file = "urllib3-1.26.6-py2.py3-none-any.whl", hash = "sha256:39fb8672126159acb139a7718dd10806104dec1e2f0f6c88aab05d17df10c8d4"}, - {file = "urllib3-1.26.6.tar.gz", hash = "sha256:f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"}, -] diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 552b38c..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,16 +0,0 @@ -[tool.poetry] -name = "spotify-user-register" -version = "1.0.0" -description = "" -authors = ["Ignacio "] - -[tool.poetry.dependencies] -python = "^3.8" -requests = "^2.26.0" -colorama = "^0.4.4" - -[tool.poetry.dev-dependencies] - -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2563148 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +requests +coloarma