https://github.com/devincarr/goarxiv
Go API wrapper for arXiv.org's search API
https://github.com/devincarr/goarxiv
Last synced: about 2 months 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T17:59:30.000Z (over 11 years ago)
- Last Synced: 2025-01-17T04:12:34.742Z (over 1 year 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 [](https://travis-ci.org/DevinCarr/goarxiv) [](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)