抖音别人的作品怎么保存不了 抖音怎么下载别人的作品( 二 )


video_response = requests.get(video_html, headers=headers)
video_soup = BeautifulSoup(video_response.text, 'html.parser')
video_text = video_soup.find('div', {'class': 'body'}).text
with open(video_title + '.txt', 'w', encoding='utf-8') as f:
f.write(video_text)
“`
【抖音别人的作品怎么保存不了 抖音怎么下载别人的作品】需要替换代码中的xxxxxx为博主的抖音ID,并安装requests和beautifulsoup库 。

推荐阅读