Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XC queries seems unmatch the new format of xeno-canto api #67

Open
auman-chan opened this issue Jan 19, 2024 · 0 comments
Open

XC queries seems unmatch the new format of xeno-canto api #67

auman-chan opened this issue Jan 19, 2024 · 0 comments

Comments

@auman-chan
Copy link

Hi Marcelo

My code of query_xc didn't work recently (R 4.3.2 running in RStudio 2023.12.0 Build 369, warbleR 1.1.29):

malesong <- query_xc(qword = "type:song type:male q_gt:C len_gt:30", download = FALSE)
Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match

I noticed that the format of api query had been updated in 2023 (see https://xeno-canto.org/explore/api, https://xeno-canto.org/help/search). Now the connector of query is "+" instead of "&" and "%20", and use ">" instead of "_gt" to constrict the range of tags.

I tried to write the query with new format (add "+" manually) , it seemed to work:

malesong <- query_xc(qword = "len:\">30\"+q:\">C\"+type:song+year:\">2011\"",
+                      download = FALSE)
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=52m 17s
138445 recording(s) found!

It looks like the code to add connectors in query_xc are out of operation. Also they didn't work when using multi-threading.

Additionally xeno-canto has added some tags like "Sex" and "Recording method". The export table seems out of order because of their existence.

My manual query works well temporarily, but maybe the code of query_xc should be updated to fit the change of database for the further convinient use.

Thinks and looking for your response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant