-
Notifications
You must be signed in to change notification settings - Fork 30
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
Replacement of forward slash in URL #99
Comments
Thanks for the issue. Can you show a complete example? including whats returned if you do a curl request in bash/etc. the url is already like that, so it's not habanero
|
Thanks for looking at this. An MWE is
which results in
I was comparing this with the output on the page
but this comparison is obviously invalid. Am I just stuck with what Crossref returns and have to tweak the string myself, or are there some knobs I can turn when I access the API? |
Thanks for the example. Looks like an easy fix is to do: import habanero
bibtex_string = habanero.cn.content_negotiation(ids='10.1021/acs.jpcc.0c05161')
from urllib.parse import unquote
unquote(bibtex_string) I may put something like this in habanero, but I'm waiting to hear back to see if it can be fixed on their side |
Thanks, WFM! |
issue https://gitlab.com/crossref/issues/-/issues/1612 its in their backlog for now, will keep this open until fixed |
still in the backlog, seems like it's not getting fixed |
With Python 3.6.8 and habanero 0.7.4, the
/
in the DOI-part of the fieldurl
is replaced by%2F
, e.g.the bibtex entry returned by
www.doi2bib.org
for the DOI10.1021/acs.jpcc.0c05161
has the elementHowever, when I run
with that DOI, the string I obtain contains
Is this supposed to happen?
The text was updated successfully, but these errors were encountered: