You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The DOI Scraper is a Python script that reads a `.bib` file, searches for articl
14
14
2. Install the required dependencies by running the following command:
15
15
16
16
```shell
17
-
pip install requests
17
+
pip install requests
18
18
```
19
19
20
20
# Usage
@@ -24,16 +24,16 @@ Place your input `.bib` file in the same directory as the `doi_scraper.py` scrip
24
24
Open the `doi_scraper.py` file and modify the following variables according to your needs:
25
25
26
26
```python
27
-
input_file ='input.bib'# Name of the input .bib file
28
-
output_file ='output.bib'# Name of the output .bib file
29
-
INDENT_PRE=4# Number of spaces before the field name
30
-
INDENT_POST=16# Number of spaces after the field name
27
+
input_file ='input.bib'# Name of the input .bib file
28
+
output_file ='output.bib'# Name of the output .bib file
29
+
INDENT_PRE=4# Number of spaces before the field name
30
+
INDENT_POST=16# Number of spaces after the field name
31
31
```
32
32
33
33
Run the script using the following command:
34
34
35
35
```shell
36
-
python doi_scraper.py
36
+
python doi_scraper.py
37
37
```
38
38
39
39
The script will search for articles without a DOI and retrieve the missing DOIs using the Crossref API. It will then update the output .bib file with the retrieved DOIs.
0 commit comments