ImageMarkup / isic-cli

The official command line tool for interacting with the ISIC Archive.
https://isic-archive.com
Apache License 2.0
29 stars 0 forks source link

Invalid search query string error #39

Closed ifk99 closed 1 year ago

ifk99 commented 1 year ago

I am trying to dowload images using the filters diagnosis:basal cell carcinoma AND benign_malignant:malignant, but I always get error "Invalid search query string". I have tried in differents ways, and even filtering only by diagnosis:basal cell carcinoma I get the same error. I have been able to download images using other filters, but not this one. Here are some of the options I tried: isic image download --search "diagnosis:basal cell carcinoma" isic image download --search diagnosis:"basal cell carcinoma" isic image download --search "diagnosis:basal cell carcinoma AND benign_malignant:malignant" isic image download --search "benign_malignant:malignant AND diagnosis:basal cell carcinoma" isic image download --search "benign_malignant:malignant AND diagnosis:"basal cell carcinoma"" isic image download --search benign_malignant:malignant AND diagnosis:"basal cell carcinoma" isic image download --search 'benign_malignant:malignant AND diagnosis:"basal cell carcinoma"'

danlamanna commented 1 year ago

Sorry, the quoting needed for spaces is quite finicky at the moment. Take a look at my comment here - https://github.com/ImageMarkup/isic-cli/issues/14#issuecomment-1180671418 and let me know if that helps.

ifk99 commented 1 year ago

Thanks for the reply. I tried: isic image download --search 'diagnosis:"basal cell carcinoma"' testtt/ and it still gives me the invalid search query string error, I also tested the same one that you mentioned in the comment, but gives me the same error: isic image download --search 'diagnosis:"solar lentigo"' images_test/

danlamanna commented 1 year ago

Hmm. Are you on Windows by chance? And if so, are you using powershell or cmd? I recall running into weird quoting issues there e.g. https://forum.isic-archive.com/t/downloading-images-using-isic-cli/1505/5.

ifk99 commented 1 year ago

Yes I am using Windows cmd. After looking in this forum I was able able to make it work by using: isic image download --search "diagnosis:""squamous cell carcinoma"" AND benign_malignant:malignant" Thank you so much for the help!