Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devincarr/goarxiv
Go API wrapper for arXiv.org's search API
https://github.com/devincarr/goarxiv
Last synced: about 1 month ago
JSON representation
Go API wrapper for arXiv.org's search API
- Host: GitHub
- URL: https://github.com/devincarr/goarxiv
- Owner: DevinCarr
- License: mit
- Created: 2015-03-18T04:55:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T17:59:30.000Z (almost 10 years ago)
- Last Synced: 2024-06-20T13:33:51.395Z (6 months ago)
- Language: Go
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goarxiv [![Build Status](https://travis-ci.org/DevinCarr/goarxiv.svg)](https://travis-ci.org/DevinCarr/goarxiv) [![GoDoc](https://godoc.org/github.com/devincarr/goarxiv?status.svg)](http://godoc.org/github.com/devincarr/goarxiv)
A Go API wrapper around the arXiv.org [API](arxiv.org/help/api/user-manual). Provides simple access to the search query and returns in a simple Atom XML struct format.
## How to
```shell
go get github.com/devincarr/goarxiv
```
and
```Go
import github.com/devincarr/goarxiv
```
#### New Search
```Go
// Build a new search struct
s := goarxiv.New()// Add some search parameters
s.AddQuery("search_query","cat:cs.LG")// Get the results and print first article
result, error := s.Get()
if error != nil { error }
fmt.Println(result.Entry[0].Title)// "Hierarchical Reinforcement Learning with the MAXQ Value Function
Decomposition"
```#### Result Format
The results from the arXiv.org API are in Atom XMl format and goarxiv utilizes `golang.org/x/tools/blog/atom` for the results parsing. See [godoc/atom](https://godoc.org/golang.org/x/tools/blog/atom) for the format of the results.## License
The MIT License (MIT)