1
182247236 OP 我之前是这么写的
PID = 'lKGXIQa' GetPlayer = "http://12345.cutv.com/liveforapp.php?cid=%s" %PID +'&appid=S01' from urllib.request import urlopen from pprint import pprint from bs4 import BeautifulSoup html = urlopen(GetPlayer) bs_obj = BeautifulSoup(html,'html.parser') for link in bs_obj.findAll('a'): print(link.get_text()) 这么可以得出我需要的 url ,可是我觉得太复杂不好,想改简单点 |
2
182247236 OP 要沉吗 TT
|