Open MordicusEtCubitus opened 5 months ago
Ok, I think I got it, this may help to update your code:
I've started to add my browser headers one by one:
headers = {"User-Agent": "Mozilla/5.0"
, "Accept-Encoding": "gzip, deflate, br, zstd"
, "Accept-Language": "fr,en;q=0.5"
}
When adding "Accept-Language" I did got data !
Maybe the 2 others are required too.
Hi,
I'm trying to use your nice tool from command line but always got an empty dataset:
{"numRecordings":"8083","numSpecies":"4","page":1,...}
xeno-canto -m pinso
I got an empty dataset{'numRecordings': '0', 'numSpecies': '0', 'page': 1, 'numPages': 1, 'recordings': []}
{'numRecordings': '0', 'numSpecies': '0', 'page': 1, 'numPages': 1, 'recordings': []}
got
Same with
I think there is another security on the server preventing use outside browser, but I do not find what it is
If you have an idea ?
Thanks for helping