Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Update api.py #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pymed/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def _get(
if output == "json":
return response.json()
else:
return response.text
response = re.sub('<[/ ]*[a-z]{1,3}>', '', str(response.text))
return response

def _getArticles(self: object, article_ids: list) -> list:
""" Helper method that batches a list of article IDs and retrieves the content.
Expand Down