黑马魔法订阅地址

import requests
import random
import string

def abc():
    return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(16))

def abc2(device_id):
    url = 'https://api.heima2u.com/api/v1/passport/auth/deviceLogin'
    data = {'device_id': device_id}
    try:
        response = requests.post(url, data=data)
        response.raise_for_status()  # 检查是否有HTTP错误
        return response.json()
    except requests.RequestException as e:
        print(f"Error in abc2: {e}")
        return None

def abc3(auth_data):
    url = 'https://api.heima2u.com/api/v1/user/getSubscribe'
    headers = {'Authorization': auth_data}
    try:
        response = requests.get(url, headers=headers)
        response.raise_for_status()
        return response.json()
    except requests.RequestException as e:
        print(f"Error in abc3: {e}")
        return None

for _ in range(10):
    device_id = abc()
    response = abc2(device_id)
    if response and 'data' in response:
        auth_data = response['data'].get('auth_data')
        if auth_data:
            subscribe_response = abc3(auth_data)
            if subscribe_response and 'data' in subscribe_response:
                subscribe_url = subscribe_response['data'].get('subscribe_url')
                if subscribe_url:
                    print(subscribe_url)
                else:
                    print("No subscribe_url found.")
            else:
                print("Error in subscribe response.")
        else:
            print("No auth_data found.")
    else:
        print("Error in device login response.")
1 个赞
https://api.heima2u.com/api/v1/client/subscribe?token=1275cdc570e7e6c2b2d7bc34fef02a94
https://api.heima2u.com/api/v1/client/subscribe?token=bbd70c30ea3d17abe990a010b0147a6e
https://api.heima2u.com/api/v1/client/subscribe?token=820a7025e9afe86974f0e7930582f1b0
https://api.heima2u.com/api/v1/client/subscribe?token=90eee0b48254f1e501330e37e73c1d85
https://api.heima2u.com/api/v1/client/subscribe?token=6ee6ead3ff3312b0943d130586921073
https://api.heima2u.com/api/v1/client/subscribe?token=ca3cb0bba430f04bed43a58c8b430323
https://api.heima2u.com/api/v1/client/subscribe?token=5eb691a61ae5551bad76277c6e84a063
https://api.heima2u.com/api/v1/client/subscribe?token=ece37e7c0c2ce886bbf392ea3a15cc0c
https://api.heima2u.com/api/v1/client/subscribe?token=8624627ebf4727f775e62a5464f89b96
https://api.heima2u.com/api/v1/client/subscribe?token=7e80e0ce32fd0d98a34384040781cad3
https://api.heima2u.com/api/v1/client/subscribe?token=4827e402aec04a4d3d2a0db3550c3545
https://api.heima2u.com/api/v1/client/subscribe?token=8245e1230821f234e64d3a62f5684498
https://api.heima2u.com/api/v1/client/subscribe?token=67891bcad7cc312a89c7b836834bda08
https://api.heima2u.com/api/v1/client/subscribe?token=2a80509b96fd8dd80c1983d6b50b7a5b
2 个赞