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 b18ec49 commit 4c8a565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexapi_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def citations_info(res, *args):
for row in res[1:]:
for f in fields:
entity = row[f][1].split("oc/meta/")[1][:-1]
all_entities.add(entity)
all_entities.add(str(entity))

# ["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 +243,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 4c8a565

Please sign in to comment.