adblockradio / webradio-metadata Goto Github PK
View Code? Open in Web Editor NEWCollection of scraping recipes to get metadata about what is being streamed on webradios
License: Mozilla Public License 2.0
Collection of scraping recipes to get metadata about what is being streamed on webradios
License: Mozilla Public License 2.0
Did you test your module with non standard ports over https? Browsers do not allow access to many shoutcast and icecast radios that broadcast on ports different from 80 and 443. You can listen to them (and you will see warnings in the console) but you can't do other requests (errors in the console).
When I run the command 'node demo' on the Belgium Radio 1 stream the metadata shown is the metadata from Belgium MNM. I also see in the file webradio-metadata.js :
{
name: "MNM",
url: "https://services.vrt.be/playlist/onair?channel_code=55",
parser: n(296)
}, {
name: "Radio 1",
url: "https://services.vrt.be/playlist/onair?channel_code=11&accept=application%2Fvnd.playlist.vrt.be.noa_1.0%2Bjson",
parser: n(296)
}
Both parsers are n(296). I don't know how this file is created (it's not in the repo). Can this be corrected?
Not an issue, but wanted to share with you how you can retrieve the metadata from all planet radio stations:
https://listenapi.bauerradio.com/api9/eventsdadi/[radio_station]/YYYY-MM-DD/HH:mm/1
eg:
https://listenapi.bauerradio.com/api9/eventsdadi/absolute-radio/2020-08-18/11:26/1
radio list:
I don't do node.js / javascript so can't do a PR, but thought of sharing with you since I've got the RTL2 url from your repo
Have fun :)
FIP changed their website this week, and with it their API. It's now a graphql endpoint:
The variables
param decodes to:
{"bannerPreset":"600x600-noTransform","stationId":69,"previousTrackLimit":3}
And the extensions
:
{"persistedQuery":{"version":1,"sha256Hash":"8a931c7d177ff69709a79f4c213bd2403f0c11836c560bc22da55628d8100df8"}}
The extensions
param seems to be mandatory, as changing one char in the SHA hash says "persisted query not found".
The main FIP station id is 7.
The repsonse is:
{
"data": {
"now": {
"__typename": "Now",
"playing_item": {
"__typename": "TimelineItem",
"title": null,
"subtitle": null,
"cover": null,
"start_time": 0,
"end_time": 0
},
"program": null,
"song": null,
"server_time": 1562752366,
"next_refresh": 1562752376,
"mode": "program"
},
"previousTracks": {
"__typename": "HistoryCursor",
"edges": [
{
"__typename": "TimeLineItemEdge",
"node": {
"__typename": "TimelineItem",
"title": "Camille",
"subtitle": "Pâle septembre",
"start_time": 1562752070,
"cover": "https://cdns-images.dzcdn.net/images/cover/9bfc2800990b096aefce6ee9855702fa/1000x1000-000000-80-0-0.jpg"
}
},
{
"__typename": "TimeLineItemEdge",
"node": {
"__typename": "TimelineItem",
"title": "Nola Is Calling",
"subtitle": "Downtown",
"start_time": 1562751858,
"cover": "https://cdns-images.dzcdn.net/images/cover/e37d01ecbb2f4fc760ff340a2eedb98d/1000x1000-000000-80-0-0.jpg"
}
},
{
"__typename": "TimeLineItemEdge",
"node": {
"__typename": "TimelineItem",
"title": "Quatuor Debussy",
"subtitle": "Midi Do Majeur - pour quatuor à cordes et vibraphone",
"start_time": 1562751691,
"cover": null
}
}
]
},
"nextTracks": [
{
"__typename": "TimelineItem",
"title": "Rene Aubry",
"subtitle": "Mémoires du futur",
"start_time": 1562752284,
"cover": "https://cdns-images.dzcdn.net/images/cover/6c5a7e023e399e995d79f2c90407203a/1000x1000-000000-80-0-0.jpg"
}
]
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.