import requests
url = 'https://ybs.he-n-tax.gov.cn:8888/login-web/ssoserver/scripts/flvplayer.swf'
r = requests.get(url)
data = r.content
with open('d:/python/b.swf','wb') as f:
f.write(data)
f.close()
运行后可以看到d:/python/目录下有b.swf文件,但无法观看,求助各位朋友,谢谢
...全文
3334打赏收藏
python 网上爬取swf文件后,为什么无法播放
import requests url = 'https://ybs.he-n-tax.gov.cn:8888/login-web/ssoserver/scripts/flvplayer.swf' r = requests.get(url) data = r.content with open('d:/python/b.swf','wb') as f: f.write(data) f.close() 运行后可以看到d:/python/目录下有b.swf文件,但无法观看,求助各位朋友,谢谢