Skip to content

Commit

Permalink
refactor: switch to pymed-paperscraper
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisborn committed Oct 18, 2024
1 parent 5d7c0c3 commit 556dbb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ But watch out. The resulting `.jsonl` file will be labelled according to the cur

## Examples

`paperscraper` is build on top of the packages [pymed](https://pypi.org/project/pymed/),
[arxiv](https://pypi.org/project/arxiv/) and [scholarly](https://pypi.org/project/scholarly/).
`paperscraper` is build on top of the packages [arxiv](https://pypi.org/project/arxiv/), [pymed](https://pypi.org/project/pymed-paperscraper/), and [scholarly](https://pypi.org/project/scholarly/).

### Publication keyword search

Expand Down
2 changes: 1 addition & 1 deletion paperscraper/pubmed/pubmed.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List, Union

import pandas as pd
from pymed import PubMed
from pymed_paperscraper import PubMed

from ..utils import dump_papers
from .utils import get_emails, get_query_from_keywords_and_date
Expand Down
2 changes: 1 addition & 1 deletion paperscraper/pubmed/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import warnings
from typing import List, Union

from pymed.article import PubMedArticle
from pymed_paperscraper.article import PubMedArticle

finalize_disjunction = lambda x: "(" + x[:-4] + ") AND "
finalize_conjunction = lambda x: x[:-5]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
license="MIT",
install_requires=[
"arxiv>=1.4.2",
"pymed",
"pymed-paperscraper",
"pandas",
"requests",
"tqdm",
Expand Down

0 comments on commit 556dbb4

Please sign in to comment.