Skip to content
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

Field truncation at italic characters #5

Closed
NicolaMoloney opened this issue Sep 24, 2020 · 1 comment
Closed

Field truncation at italic characters #5

NicolaMoloney opened this issue Sep 24, 2020 · 1 comment

Comments

@NicolaMoloney
Copy link

I've noticed that when calling pubmed if it encounters any characters in italics the field becomes truncated. I've tried a few different ways and do not think it's the way I'm extracting results as it occurs before conversion JSON/ Dict. Does anyone have a fix for this please?

Here's an example of it happening:

from pymed import PubMed
pubmed = PubMed(tool="your search name", email="your email")
query = "32963958" # pubmed ID of a paper with italics
results = pubmed.query(query, max_results=1)
for article in results:
print(article.title)
print(article.toDict())

@NicolaMoloney
Copy link
Author

resolved here:
gijswobben/pymed#23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant