Open dvdokkum opened 6 years ago
@dvdokkum I was looking at this url to see if there was any way to parse out DJ info, but I did find anything. Was the URL I was looking at the source of the text data that is populating the app?
Yes, that's what we're using currently. More generically, http://www.wxyc.info/playlists/recentEntries (and the v2 version). You're right, it looks like that json feed does not include the show start/stop entry that shows in the regular schedule. @jakebromberg you have thoughts on this, i believe?
We either need to work with Tim Ross to extend his API, or scrape the playlist HTML to get this information.
Does swift have a scraping lib? @jakebromberg
You could use NSXMLParser, but this is definitely the kind of thing that should be done on a front end service layer. And the parser library sits in Foundation, which isn't available on Linux, is we were to deploy a Swift service.
Ah...okay. So basically it would be best to reach out to Tim and have him extend the API?
Yeah. I'm in town starting Saturday. I'm going to see if he wants to get lunch.
There isn't much structured data for this, but if the DJ supplies a public "nickname" when they start their show that metadata should show up somewhere in the playlist json api.... i think?