五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

ai繪畫

2023-08-11 18:44 作者:糖醋_小趴菜版  | 我要投稿

# 糖醋慕雨的快樂時光


import requests

import json

import os

# 獲取程序的絕對路徑

current_directory = os.path.dirname(os.path.abspath(__file__))

# 創(chuàng)建douyin文件夾路徑

douyin_folder = os.path.join(current_directory, "haiyi")

# 如果douyin文件夾不存在,則創(chuàng)建它

if not os.path.exists(douyin_folder):

??os.mkdir(douyin_folder)


url = 'https://www.haiyiai.com/api/v1/artwork/home/list'


# https://www.haiyiai.com/user/1873663116 畫師主頁鏈接


account_no = input('請輸入畫師主頁鏈接: ')


account_no = int(account_no.split('user/')[1])


detail_params = {?# 調(diào)節(jié)參數(shù)

??'account_no': f"{account_no}",# 畫師id

??'keyword': "",

??'order_by': "new",

??'page': 1,

??'page_size': 20,

}


headers = {

??'token': '', # 添加自己的token


??'user-agent': '', # 添加自己的user-agent


??'referer': f'https://www.haiyiai.com/user/{account_no}',

??'cookie': '', # 添加自己的cookie


??'x-device-id': '316bfe5d-150c-4498-afd1-291bb177d212',

??'x-platform': 'web',

}


def scrape_Main(url, headers, params):


??response = requests.post(url, headers=headers, json=params)

??try:

????if response.status_code == 200:

??????response.encoding = response.apparent_encoding

??????# print(response.text)/

??????return response.text

??except requests.RequestException:

????print('請求失敗')



def parsel_page(datas):

??datas = datas['data']['items']


??data_json = []

??for data in datas:

??????url = data['banner']['url']?# 題目

??????height = data['banner']['height']

??????width = data['banner']['width']

??????data_json.append({"url": url, "height": height, "width": width})

??return data_json



def main(url, headers, params):

??json_data = json.loads(scrape_Main(url, headers, params))

??url_img = parsel_page(json_data)

??for img in url_img:

????img_url = img['url']

????content = requests.get(url=img_url, headers=headers).content

????topic = img_url.split('/')[-1]

????with open('haiyi//' + topic , 'wb') as f:

??????f.write(content)

????print(topic + '-------------下載成功')




=

ai繪畫的評論 (共 條)

分享到微博請遵守國家法律
谷城县| 太白县| 巧家县| 古田县| 遵化市| 昌吉市| 关岭| 永福县| 彭州市| 临桂县| 德保县| 鄂州市| 策勒县| 九龙县| 平远县| 临安市| 吉水县| 阳新县| 商都县| 墨竹工卡县| 岳普湖县| 湘西| 英山县| 阳高县| 吴忠市| 合山市| 彰化县| 大冶市| 桑植县| 河西区| 丘北县| 蒙阴县| 银川市| 鄂尔多斯市| 塔城市| 福建省| 灵寿县| 上栗县| 隆化县| 瑞昌市| 阿拉尔市|