-
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
Can identify to crossref? #63
Comments
i have no idea what you're asking, please clarify |
Sorry about that. I agree that it was completely incomprehensible. Thanks for taking the time to get back to me. is it possible to
|
we do send a user agent header in every request, try this: import requests
import logging
import httplib as http_client
http_client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True from habanero import Crossref
cr = Crossref()
x = cr.works(query = "ecology")
# gives in request headers
GET /works?query=ecology HTTP/1.1
Host: api.crossref.org
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: python-requests/2.18.1 habanero/0.5.0.1
X-USER-AGENT: python-requests/2.18.1 habanero/0.5.0.1 I imagine you want to set your own user agent string though, correct? if so, I can probably modify |
I'd like to be able to set a mailto: |
okay, i'll look into it |
actually... |
@brandonStell are you sure that's working? looking at code, looks like we setup |
@brandonStell thoughts on my last comment? |
Sorry for the slow response. Unfortunately now I can't remember why I thought it was working (perhaps because it didn't throw an error...) |
yeah, i wouldn't think it would throw an error from my understanding of the code, i don't think what you did should work, can you try again with the verbose printing from #63 (comment) and show me what you get |
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.crossref.org |
right, so looks like it doesn't work to pass in email. can look into adding option to set that |
@brandonStell sorted out via #68 - try again after reinstalling from github, will push new version to pypi soon |
https://github.com/CrossRef/rest-api-doc#etiquette
The text was updated successfully, but these errors were encountered: