这个是用pycharm的框架进行编程的,为什么会出错呢
import requests#咪咕視頻瞬间秒了
url='http://freetyst.nf.migu.cn/public/product10th/productB35/2024/01/0214/2023%E5%B9%B412%E6%9C%8828%E6%97%A516%E7%82%B951%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E6%B5%B7%E8%9D%B6%E5%94%B1%E7%89%871%E9%A6%96115550/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/6005861J2YQ144853.mp3?channelid=02&msisdn=c42afa87-7d9e-4069-9485-40b4fb82e9a8&Tim=1723116308987&Key=5f8480756d0ad51d'
res=requests.get(url)
open('我記得.mp3','wb').write(res.content)
#":"http://freetyst.nf.migu.cn/public/product9th/product46/2023/09/2520/2023%E5%B9%B409%E6%9C%8825%E6%97%A515%E7%82%B945%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E5%88%9B%E5%93%8D%E5%A8%B1%E4%B9%901%E9%A6%96515835/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/69938800638200506.mp3?channelid=02&msisdn=87481b9e-f522-43b5-a965-7066369906e3&Tim=1723117607090&Key=412af8e066f327a2"
#url1="http://freetyst.nf.migu.cn/public/product9th/product46/2023/09/2520/2023%E5%B9%B409%E6%9C%8825%E6%97%A515%E7%82%B945%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E5%88%9B%E5%93%8D%E5%A8%B1%E4%B9%901%E9%A6%96515835/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/69938800638200506.mp3?channelid=02&msisdn=87481b9e-f522-43b5-a965-7066369906e3&Tim=1723117607090&Key=412af8e066f327a2"
#凤凰传奇http://freetyst.nf.migu.cn/public/product9th/product46/2023/09/2520/2023%E5%B9%B409%E6%9C%8825%E6%97%A515%E7%82%B945%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E5%88%9B%E5%93%8D%E5%A8%B1%E4%B9%901%E9%A6%96515835/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/69938800638200506.mp3?channelid=02&msisdn=87481b9e-f522-43b5-a965-7066369906e3&Tim=1723117607090&Key=412af8e066f327a2
#url2='http://freetyst.nf.migu.cn/public/product9th/product46/2023/09/2520/2023%E5%B9%B409%E6%9C%8825%E6%97%A515%E7%82%B945%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E5%88%9B%E5%93%8D%E5%A8%B1%E4%B9%901%E9%A6%96515835/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/69938800638200506.mp3?channelid=02&msisdn=87481b9e-f522-43b5-a965-7066369906e3&Tim=1723117607090&Key=412af8e066f327a2'
#res2=requests.get(url2)
url3='http://freetyst.nf.migu.cn/public/product10th/productB35/2024/01/0214/2023%E5%B9%B412%E6%9C%8829%E6%97%A513%E7%82%B941%E5%88%86%E7%B4%A7%E6%80%A5%E5%86%85%E5%AE%B9%E5%87%86%E5%85%A5%E6%B5%B7%E8%9D%B6%E5%94%B1%E7%89%871%E9%A6%96115243/%E6%A0%87%E6%B8%85%E9%AB%98%E6%B8%85/MP3_128_16_Stero/6005861J2ZW145359.mp3?channelid=02&msisdn=949a8c49-143a-403a-91cd-47c6970eb996&Tim=1723701075176&Key=875352cc0952383c","audioFormatType'
headers={'channel':' 0140210','User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090b19)XWEB/11205','Referer': 'https://servicewechat.com/wxe9188e46b544384b/62/page-frame.html'}
res3=requests.get(url3,headers=headers)
print(res3.text)
这是啥?咋还能插音乐了? 反扒拦下来了
页:
[1]