segler-alex / radiobrowser-api-rust

radio-browser API implementation in rust
GNU Affero General Public License v3.0
230 stars 96 forks source link

Any way to discover stations by country code or states? #115

Closed deep5050 closed 3 years ago

deep5050 commented 3 years ago

I have made an app (radioactive) using pyradios module. I don't know whether this API does not support this or the python wrapper did not implement this!

I can see people are having trouble finding the right station (often searching station with their country name). I want to add an option to discover nearby stations. Is it anyhow possible?

segler-alex commented 3 years ago

i tried it out. you can use the advanced search in pyradios:

from pyradios import RadioBrowser
rb = RadioBrowser()
rb.search(countrycode="AT",limit=3)

here are the docs for supported parameters https://de1.api.radio-browser.info/#Advanced_station_search

segler-alex commented 3 years ago

how to get help for pyradios

from pyradios import RadioBrowser
help(RadioBrowser)