Skip to content

Commit

Permalink
testing ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Sep 11, 2023
1 parent 4c8a565 commit 9071e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indexapi_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def citations_info(res, *args):
entity = row[f][1].split("oc/meta/")[1][:-1]
all_entities.add(str(entity))

all_entities = ["br/061302130471"]
# ["id", "author", "year", "pub_date", "title", "source_title", "volume", "issue", "page", "source_id"]
r = __ocmeta_parser(list(all_entities),"omid")

Expand Down Expand Up @@ -243,7 +244,7 @@ def __normalise(o):
def __ocmeta_parser(dois,pre="doi"):
api = "http://127.0.0.1/meta/api/v1/metadata/%s"


r = get(api % "__".join([pre+":" + d for d in dois]),
headers={"User-Agent": "INDEX REST API (via OpenCitations - http://opencitations.net; mailto:[email protected])"}, timeout=60)

Expand Down

0 comments on commit 9071e6f

Please sign in to comment.