aboutsummaryrefslogtreecommitdiffstats
path: root/extra/abbrev/README.md
blob: f903751a9e3da43bd61f1c1278f4dd0cd14222e6 (plain)
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
36
37
38
39
40
41
42
# Journal Name Abbreviations

Journal lists:

* https://www.library.caltech.edu/journal-title-abbreviations
* https://images.webofknowledge.com/images/help/WOS/A_abrvjt.html

```
$ pup 'dl json{}' < A_abrvjt.html | jq -rc .[0].children[] | grep "children" | python parse.py
```

Generate a name mapping as json.

```
$ while read line;
    do (curl -v "$line" | pup 'dl json{}' | jq -rc .[0].children[] | grep "children" | python parse.py);
done < <(curl "https://www.library.caltech.edu/journal-title-abbreviations" | pup 'a attr{href}' | grep "help/WOS") > result.json
```

Output example (pretty printed):

```json
{
  "name": "JOURNAL OF COMPARATIVE PATHOLOGY",
  "abbrev": "J COMP PATHOL"
}
{
  "name": "CIRCULAR-GRATING LIGHT-EMITTING SOURCES",
  "abbrev": "P SOC PHOTO-OPT INS"
}
{
  "name": "PEST CONTROL &amp; SUSTAINABLE AGRICULTURE"
}
{
  "name": "COMPUTER INFORMATION SYSTEMS AND INDUSTRIAL MANAGEMENT",
  "abbrev": "LECT NOTES COMPUT SC"
}
{
  "name": "Flexible Databases Supporting Imprecision and Uncertainty",
  "abbrev": "STUD FUZZ SOFT COMP"
}
```