-
Notifications
You must be signed in to change notification settings - Fork 58
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
Recent update? #74
Comments
Hi.
Curl works with export service. bibcode is actually a list, even if you are
requesting one bibcode only. So this works
curl -d '{"bibcode":["2010PhRvD..82j4014W"]}' -H 'Authorization: Bearer
token' 'https://api.adsabs.harvard.edu/v1/export/bibtex'
{"msg": "Retrieved 1 abstracts, starting with number 1.", "export":
"@Article{2010PhRvD..82j4014W,\n author = {{Witek}, Helvi and
{Zilh{\\~a}o}, Miguel and {Gualtieri}, Leonardo and {Cardoso}, Vitor and
{Herdeiro}, Carlos and {Nerozzi}, Andrea and {Sperhake}, Ulrich},\n
title
= \"{Numerical relativity for D dimensional space-times: Head-on collisions
of black holes and gravitational wave extraction}\",\n journal =
{\\prd},\n keywords = {04.25.dg, 04.50.Gh, Numerical studies of black
holes and black-hole binaries, Higher-dimensional black holes black strings
and related objects, General Relativity and Quantum Cosmology, Astrophysics
- High Energy Astrophysical Phenomena, High Energy Physics - Phenomenology,
High Energy Physics - Theory},\n year = 2010,\n month =
nov,\n volume = {82},\n number = {10},\n eid =
{104014},\n pages = {104014},\n doi =
{10.1103/PhysRevD.82.104014},\narchivePrefix = {arXiv},\n eprint =
{1006.3081},\n primaryClass = {gr-qc},\n adsurl = {
https://ui.adsabs.harvard.edu/abs/2010PhRvD..82j4014W},\n adsnote =
{Provided by the SAO/NASA Astrophysics Data System}\n}\n\n"}(python)
golnaz
…On Thu, May 6, 2021 at 3:59 PM Gabriele Bozzola ***@***.***> wrote:
Recently, bibslurp stopped working (mkmcc/bibslurp#12 (comment)
<mkmcc/bibslurp#12 (comment)>). I
suspect that something changed in the APIs. I think that the following used
to work:
curl -d "bibcode=2010PhRvD..82j4014W" -H 'Authorization: Bearer MY_TOKEN' 'https://api.adsabs.harvard.edu/v1/export/bibtex'
but now it doesn't anymore and I need to send the data as '-d
{"bibcode":"2010PhRvD..82j4014W"}.
I cannot find any announcement about any change. Has there been any change
on the server side?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKDRFLMOOMRD7SGNN43AHLTMLYKZANCNFSM44HZ2CZQ>
.
|
I would like to understand why |
export service has not changed, still support both POST and GET. For POST it expects a list of bibcodes, for GET the bibcode is inserted at the end of url. So this works |
Thanks, with your comments I updated I guess this issue is solved. Thanks! |
Well maybe one explanation. We recently have switched to python 3. Maybe it
was working under python 2, even if the signature was not correct. The
Python 3 version was released last month.
…On Thu, May 6, 2021 at 5:43 PM Gabriele Bozzola ***@***.***> wrote:
Thanks, with your comments I updated bibslurp so that it works again. I
realized that we were using the APIs incorrectly and bibslurp should not
have worked in the first place (but it has been working fine for two
years!). I cannot think of any other explanation for why it stopped working
except that something changed server-side. (I cannot say how recently the
package stopped working, it could have been in the past 2/3 months maybe?).
I guess this issue is solved. Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3M4CCHVTLJVAVDIWFRHPTTMMERXANCNFSM44HZ2CZQ>
.
|
@golnazads that is consistent with when bibslurp stopped working... mystery solved |
Recently,
bibslurp
stopped working (mkmcc/bibslurp#12 (comment)). I suspect that something changed in the APIs. I think that the following used to work:but now it doesn't anymore and I need to send the data as
'-d {"bibcode":"2010PhRvD..82j4014W"}
.I cannot find any announcement about any change. Has there been any change on the server side?
The text was updated successfully, but these errors were encountered: