forked from PRAISELab-PicusLab/bibliometrix-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
35 lines (31 loc) · 1.13 KB
/
Copy pathtest.py
File metadata and controls
35 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from www.services.api_retriever import retrieve
from www.services.standardizer import standardize
from www.services.validator import validate
# Test OpenAlex
records = retrieve(query="machine learning", platform="openalex", total=50)
df = standardize(records, source="openalex")
df = validate(df)
print(df.head())
df.to_csv("test_openalex.csv", index=False)
print("OpenAlex CSV generato")
# Test OpenAlex (200 record)
records = retrieve(query="machine learning", platform="openalex", total=200)
df = standardize(records, source="openalex")
df = validate(df)
print(df.head())
df.to_csv("test_openalex_200.csv", index=False)
print("OpenAlex CSV 200 generato")
# Test PubMed
records = retrieve(query="machine learning", platform="pubmed", total=50)
df = standardize(records, source="pubmed")
df = validate(df)
print(df.head())
df.to_csv("test_pubmed.csv", index=False)
print("PubMed CSV generato")
# Test PubMed (200 record)
records = retrieve(query="machine learning", platform="pubmed", total=200)
df = standardize(records, source="pubmed")
df = validate(df)
print(df.head())
df.to_csv("test_pubmed_200.csv", index=False)
print("PubMed CSV 200 generato")