|
@@ -488,6 +488,7 @@ def create_uid(task, task_id):
|
|
|
try:
|
|
|
response = requests.post(url=conf['media_url'], params=post_data)
|
|
|
media_id = response.json()['data']
|
|
|
+ media_info = requests.get(url=conf['select_media_url'], params={'uid': media_id}).json()['content']
|
|
|
except Exception as e:
|
|
|
logging.warning(f'创建账户:{spider_link},失败,原因:{e}')
|
|
|
fail_list.append(author_url)
|
|
@@ -496,6 +497,7 @@ def create_uid(task, task_id):
|
|
|
data = dict(
|
|
|
spider_link=author_url,
|
|
|
media_id=media_id,
|
|
|
+ media_name=media_info['longvideoNickName'] if media_info['longvideoNickName'] else media_info['nickName'],
|
|
|
source=source,
|
|
|
task_type=task_type,
|
|
|
applets_status=applets_status,
|