diff options
-rw-r--r-- | extra/abbrev/README.md | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/extra/abbrev/README.md b/extra/abbrev/README.md index a5c8e06..f903751 100644 --- a/extra/abbrev/README.md +++ b/extra/abbrev/README.md @@ -1,6 +1,6 @@ -# README +# Journal Name Abbreviations -Journal list. +Journal lists: * https://www.library.caltech.edu/journal-title-abbreviations * https://images.webofknowledge.com/images/help/WOS/A_abrvjt.html @@ -9,10 +9,34 @@ Journal list. $ pup 'dl json{}' < A_abrvjt.html | jq -rc .[0].children[] | grep "children" | python parse.py ``` -Generate a full list. +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 & 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" +} +``` |