谷歌學術是目前感覺最好的學術搜索引擎,谷歌學術檔案提供了學者的個人學術信息,不過通常情況我們無法查看和使用這個信息。Y 叔寫的 scholar 包雖然提供了齊全的功能,但由於網絡限制在國內基本無法使用。
如果我想要簡單地獲取和展示我的個人學術信息,這時候該怎麼辦?
通過搜索,我發現有人提供了一個用 php 寫的訪問接口,該接口可以根據谷歌學術 id 返回一段 json 格式的谷歌學術數據,包括引用數和出版物。數據雖然簡單,但已經足夠我的使用了。我進一步找到了對應的 GitHub 項目 地址,與 Openbiox 的劍鋒交流後在 Hiplot 項目上也部署了一個相同的接口,方便調用。
受 scholar 包啓發,我創建了一個名爲 tinyscholar 的 R 包,用於解析數據和提供表格/圖形可視化。
安裝
# install.packages("devtools")
devtools::install_github("ShixiangWang/tinyscholar")
# devtools::install_git("https://gitee.com/ShixiangWang/tinyscholar")
使用
類似 scholar 包,這裏對 Richard Feynman 進行簡單展示。
library(tinyscholar)
id <- "B7vSqZsAAAAJ"
profile <- tinyscholar(id)
#> Using cache directory: /var/folders/bj/nw1w4g1j37ddpgb6zmh3sfh80000gn/T//RtmprXOaXD/tinyscholar
#> Cannot find cache file /var/folders/bj/nw1w4g1j37ddpgb6zmh3sfh80000gn/T//RtmprXOaXD/tinyscholar/unsorted_2020-08-16_B7vSqZsAAAAJ.rds
#> Try quering data from server: hiplot
#> Save data to cache file /var/folders/bj/nw1w4g1j37ddpgb6zmh3sfh80000gn/T//RtmprXOaXD/tinyscholar/unsorted_2020-08-16_B7vSqZsAAAAJ.rds
#> Done
tb <- scholar_table(profile)
tb$publications
Publications | ||||
---|---|---|---|---|
title | authors | venue | citations | year |
Quantum mechanics and path integration | RP Feynman, AR Hibbs | McGraw–Hill, 1965 | 27792 | 1965 |
The Feynman lectures on physics | RP Feynman, RB Leighton, M Sands, SB Treiman | Physics Today 17, 45, 1964 | 15411 | 1964 |
TheFeynman lectures on physics | RP Feynman, RB Leighton, M Sands, CA Heras, R Gómez, E Oelker, ... | Fondo Educativo Interamericano, cop., 1971 | 15222 | 1971 |
Mainly mechanics, radiation, and heat | RP Feynman, RB Leighton, ML Sands | Addison Wesley Publishing Company, 1963 | 15070 | 1963 |
Simulating physics with computers | RP Feynman | International journal of theoretical physics 21 (6), 467-488, 1982 | 8198 | 1982 |
Space-time approach to non-relativistic quantum mechanics | RP Feynman | Reviews of Modern Physics 20 (2), 367, 1948 | 5010 | 1948 |
There's plenty of room at the bottom | RP Feynman | Engineering and Science 23 (5), 22-36, 1960 | 4809 | 1960 |
Forces in molecules | RP Feynman | Physical Review 56 (4), 340, 1939 | 4465 | 1939 |
The character of physical law | R Feynman | MIT press, 1967 | 3319 | 1967 |
Very high-energy collisions of hadrons | RP Feynman | Physical Review Letters 23 (24), 1415-1417, 1969 | 3240 | 1969 |
Theory of the Fermi interaction | RP Feynman, M Gell-Mann | Physical Review 109 (1), 193, 1958 | 3115 | 1958 |
The theory of a general quantum system interacting with a linear dissipative system | RP Feynman, FL Vernon | Annals of physics 24, 118-173, 1963 | 2835 | 1963 |
QED: The strange theory of light and matter | RP Feyman | Universities Press, 1985 | 2683 | 1985 |
Photon--hadron interactions | RP Feynman | WA Benjamin, Inc., Reading, MA, 1972 | 2471 | 1972 |
Space-time approach to quantum electrodynamics | RP Feynman | Physical Review 76 (6), 769, 1949 | 2118 | 1949 |
The theory of positrons | RP Feynman | Physical Review 76 (6), 749, 1949 | 1796 | 1949 |
Interaction with the absorber as the mechanism of radiation | JA Wheeler, RP Feynman | Reviews of Modern Physics 17 (2-3), 157-181, 1945 | 1673 | 1945 |
Surely You are Joking Mr Feynmanl: Adventures of a Curious Character | RP Feynman | Bantam Books, 1986 | 1584 | 1986 |
Quantum-mechanical computers, Suc | R Feynman | Phys. Sci 149 (4), 671-688, 1986 | 1559 | 1986 |
An operator calculus having applications in quantum electrodynamics | RP Feynman | Physical Review 84 (1), 108, 1951 | 1410 | 1951 |
Update: 2020-08-16 |
pl <- scholar_plot(profile, add_text = FALSE)
pl$citations + ggpubr::rotate_x_text()
pl$publications + ggpubr::rotate_x_text()
更爲詳細的介紹請查看在線文檔。這裏除了 tinyscholar()
這個核心函數用於獲取和清理數據,生成一個列表,展示方面讀者可以各顯神通。