只做数据的搬运工, 按照某些规则, 对数据进行筛选,去重等工作, 形成一张缩写对照表.
git submodule add https://github.com/JabRef/abbrv.jabref.org.git metadata
git submodule update --remote
git clone --recursive https://github.com/zoushucai/journalmerge.git
git submodule update --init --recursive-
先执行
python ./down_woodward.py, 会产生woodward_library_new.csv文件 -
然后执行
python ./copyfile.py,-
会把当前文件夹下的
./woodward_library_new.csv文件与./woodward_library.csv文件进行比较, 如果不一样,则拷贝到./woodward_library.csv, -
同时会执行
Rscript ./combine_journal_lists.R, 会生成一个data_new.ts,data_new.csv以及R/sysdata.rda文件, -
然后运行 比较
data_new.ts和data.ts是否相同, 如果相同,则不拷贝, 如果不同,则用data_new.ts替换data.ts
-
最后把 data.ts 和 R/sysdata.rda 传给其他的仓库
-
data.ts用于 zotero-journalabbr 仓库 -
R/sysdata.rda用于journalabbr仓库
- 由于本仓库涉及爬虫
github action 脚本运行的步骤, 本质运行 bash ./main.sh
clear_data.js会把data_new.ts拷贝成data_new.js, 然后删除iso4标准相同, 生成datanew.js,这个没有放入github action中, 运行时间太长
- python
- R
安装 python 以后,还需再命令行安装其他软件
pip install -r requirements.txt安装 R 以后, 还需要
install.packages(c("stringr", "tibble","data.table", "purrr"))