Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 谷歌封锁_Python_Http_Security_Https - Fatal编程技术网

Python 谷歌封锁

Python 谷歌封锁,python,http,security,https,Python,Http,Security,Https,我在同一个外部ip上有两台服务器。在一台服务器上,此代码运行良好 from requests.exceptions import SSLError BASE = "https://android.clients.google.com/" FDFE = BASE + "fdfe/" CHECKIN_URL = BASE + "checkin" AUTH_URL = BASE + "auth" params ={'E

我在同一个外部ip上有两台服务器。在一台服务器上,此代码运行良好

from requests.exceptions import SSLError
BASE = "https://android.clients.google.com/"
FDFE = BASE + "fdfe/"
CHECKIN_URL = BASE + "checkin"
AUTH_URL = BASE + "auth"


params ={'Email': 'whyareyoublockme1@gmail.com', 'EncryptedPasswd': 'my password', 'add_account': '1', 'accountType': 'HOSTED_OR_GOOGLE', 'google_play_services_version': '11951438', 'has_permission': '1', 'source': 'android', 'device_country': 'en', 'lang': 'en_US', 'client_sig': '38918a453d07199354f8b19af05ec6562ced5788', 'callerSig': '38918a453d07199354f8b19af05ec6562ced5788', 'service': 'ac2dm', 'callerPkg': 'com.google.android.gms'}

for var in range(0, 5):
    try:
        response = requests.post(AUTH_URL,params)
        print(response.status_code)
        print(response.content)
    except SSLError:
        print(var)```

,but on another server , this code return 403 error BadAuthentication.
How google can block my server without ip-blocking?