From af0bfad54f13b40451c6c7f378703e581432c5bd Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Sun, 22 May 2022 02:37:46 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8D=E5=9B=BE?= =?UTF-8?q?=E9=9B=86BGM=E6=8A=A5=E9=94=99=20#30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scraper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index 2cc850a..d20f6dc 100644 --- a/scraper.py +++ b/scraper.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/05/16 +# @Update: 2022/05/22 # @Function: # 核心代码,估值1块(๑•̀ㅂ•́)و✧ # 用于爬取Douyin/TikTok数据并以字典形式返回。 @@ -113,6 +113,8 @@ class Scraper: # 图集BGM MID album_music_mid = str(js['item_list'][0]['music']['mid']) else: + # 图集BGM为空 + album_music = 'No BGM found' # 图集BGM标题 album_music_title = 'No BGM found' # 图集BGM作者