Skip to content

Commit

Permalink
fix: update scraping code (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
EverVino authored Feb 4, 2024
1 parent 0b3480c commit 220f2bf
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 44 deletions.
138 changes: 137 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exclude = [
[tool.poetry.dependencies]
python = ">3.8.1,<4"
requests = ">=2.20.0"
lxml = "^5.1.0"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.3.2"
Expand All @@ -41,6 +42,7 @@ mkdocstrings-python = ">=1.1.2"
jupyterlab = ">=4.0.5"
makim = "1.12.0"
requests-cache = ">=1"
types-lxml = "^2023.10.21"

[tool.pytest.ini_options]
testpaths = [
Expand Down
3 changes: 2 additions & 1 deletion src/pymedx/api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""API module for PubMed."""
import datetime
import itertools
import xml.etree.ElementTree as xml

from typing import Any, Dict, Iterable, List, Union, cast

import requests

from lxml import etree as xml

from .article import PubMedArticle
from .book import PubMedBookArticle
from .helpers import batches
Expand Down
Loading

0 comments on commit 220f2bf

Please sign in to comment.