Download
download¤
download_metadata(unique_ids, target=None, sleep_time=1)
¤
Download paper data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
unique_ids |
list
|
list of unique ids to find paper metadata |
required |
target |
Optional[Union[str, Path]]
|
path to save data |
None
|
sleep_time |
int
|
time to sleep between requests, defaults to 1 |
1
|
Source code in kirsche/download.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
list_dois(paper_ids=None, bib_file=None)
¤
list_dois loads a list of DOIs from multiple possible sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
paper_ids |
Optional[Union[list, str]]
|
list of DOIs |
None
|
bib_file |
Optional[Union[str, Path]]
|
path to bib file |
None
|
Returns:
Type | Description |
---|---|
list
|
list of DOIs loaded |
Source code in kirsche/download.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
list_unique_ids(bib_file)
¤
list_unique_ids loads a list of unique ids from multiple possible sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bib_file |
Union[str, Path]
|
path to bib file |
required |
Returns:
Type | Description |
---|---|
list
|
list of unique ids loaded |
Source code in kirsche/download.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
main(paper_id, bib_file, target, sleep_time)
¤
Download paper data from service provides (e.g., SemanticScholar)
Source code in kirsche/download.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|