Skip to content

Commit

Permalink
refactor: Switch to self-maintained version of pymed
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisborn committed Oct 13, 2024
1 parent f02da3f commit 5d7c0c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions paperscraper/pubmed/tests/test_pubmed.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import os
import tempfile
from unittest.mock import patch

import pytest

from paperscraper.pubmed import get_and_dump_pubmed_papers, get_pubmed_papers
from paperscraper.pubmed.utils import get_query_from_keywords_and_date
Expand Down Expand Up @@ -32,3 +29,9 @@ def test_email(self):
)
df = get_pubmed_papers(query, fields=["emails", "title", "authors"])
assert "emails" in df.columns


if __name__ == "__main__":
t = TestPubMed()
t.test_get_and_dump_pubmed()
t.test_email()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
arxiv>=1.4.7
pymed==0.8.9
pybmed-paperscraper==1.0.0
pandas>=1.0.4
requests==2.32.0
tqdm>=4.51.0
Expand Down

0 comments on commit 5d7c0c3

Please sign in to comment.