0

My URL contains a quote character, and Google Spreadsheets see this as the end of the URL whereas it is not.

https://api.archives-ouvertes.fr/search/?fq=producedDateY_i:[2013 TO 2015]&fq=docType_s:"ART"&rows=0

How can I use an URL with ImportXML() that has a quote character in it?

2 Answers 2

1

Double the quote character, instead of " use """".

Another alternative is to put the URL alone on cell, lets say A1, then put the cell reference in your formula:

  =IMPORTXML(A1,"//div")
0

You can also encode your url. %22 is the encoded quotations:

https://api.archives-ouvertes.fr/search/?fq=producedDateY_i:[2013%20TO%202015]&fq=docType_s:%22ART%22&rows=0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.