美国国家航空航天局广告中的一个不烂的python模块。
ads的Python项目详细描述
一个python模块,用于与nasa的广告互动,它不吸™
如果你是从事天文研究的,那么你几乎需要nasa的广告。 这是尝试过的,是真的,人们很少在它倒下的时候发疯。
- 文件:https://ads.readthedocs.io/
- 回购:https://github.com/andycasey/ads
- 圆周率:https://pypi.python.org/pypi/ads
快速启动
>>> import ads >>> ads.config.token = 'secret token' >>> papers = ads.SearchQuery(q="supernova", sort="citation_count") >>> for paper in papers: >>> print(paper.title) [u'Maps of Dust Infrared Emission for Use in Estimation of Reddening and Cosmic Microwave Background Radiation Foregrounds'] [u'Measurements of Omega and Lambda from 42 High-Redshift Supernovae'] [u'Observational Evidence from Supernovae for an Accelerating Universe and a Cosmological Constant'] [u'First-Year Wilkinson Microwave Anisotropy Probe (WMAP) Observations: Determination of Cosmological Parameters'] [u'Abundances of the elements: Meteoritic and solar']