INNER CODE UNIT · Python

fetch_apple_count

dongyubin/Free-AppleId-Serve · apple.py:38

def fetch_apple_count(urls):
    # 存储所有网站的账号密码
    all_credentials = []
    # 发起请求获取网页内容
    headers = {
        'Content-Type': 'application/json',
        'Accept':'application/json, text/javascript, */*; q=0.01'
    }
    for url in urls:
        try:
        # print('url:',url)
        # if url.startswith('https://aunlock.laogoubi.net') or url.startswith('https://apple.laogoubi.net'):
            if 'laogou' in url :
                headers['Referer'] = url
                response = requests.get(url, headers=headers)
                res_text = response.text
                print(res_text)
                data = json.loads(res_text)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…