This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Xtra | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_1xtra.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Dance | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_dance.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Relax | |
| http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_relax.m3u8 | |
| #EXTINF:-1,BBC - Radio 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| headers = { | |
| 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0', | |
| 'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', | |
| 'Accept-Language' : 'en-US,en;q=0.5', | |
| 'Accept-Encoding' : 'gzip, deflate', | |
| 'Referer' : 'http://178.62.54.97:31517/', | |
| 'Content-Type' : 'application/x-www-form-urlencoded' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| import requests | |
| from bs4 import BeautifulSoup | |
| text = "" | |
| reqs = requests.get(url) | |
| soup = BeautifulSoup(reqs.text, 'lxml') | |
| for heading in soup.find_all("h3"): | |
| print(heading.name + ' ' + heading.text.strip()) | |
| text = heading.text.strip() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| import requests | |
| text = "" | |
| reqs = requests.get(url) | |
| soup = BeautifulSoup(reqs.text, 'lxml') | |
| for heading in soup.find_all("h3"): | |
| print(heading.name + ' ' + heading.text.strip()) | |
| text = heading.text.strip() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install beautifulsoup4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| import requests | |
| from bs4 import BeautifulSoup | |
| url ="http://178.62.54.97:31517/" | |
| text = "" | |
| reqs = requests.get(url) |