Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewsonne/pyatlasobscura
Python Library to interact with the AtlasObscura dataset
https://github.com/drewsonne/pyatlasobscura
api atlas-obscura atlasobscura sdk
Last synced: about 1 month ago
JSON representation
Python Library to interact with the AtlasObscura dataset
- Host: GitHub
- URL: https://github.com/drewsonne/pyatlasobscura
- Owner: drewsonne
- License: lgpl-3.0
- Created: 2018-11-18T10:48:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T18:44:18.000Z (over 5 years ago)
- Last Synced: 2024-11-13T20:11:25.669Z (about 1 month ago)
- Topics: api, atlas-obscura, atlasobscura, sdk
- Language: Python
- Homepage:
- Size: 460 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyatlasobscura
[![Build Status](https://travis-ci.com/drewsonne/pyatlasobscura.svg?branch=master)](https://travis-ci.com/drewsonne/pyatlasobscura)
Library to interact with the Atlas Obscura website
## Quickstart
```bash
pip install pyatlasobscura
``````python
import pyatlasobscura as ao
from pyatlasobscura import SearchTypefor location in ao.search(SearchType.CATEGORY, 'books'):
print(location.title)destination = next(ao.destinations())
country = destination.countries[0]
place = next(country.places())
print(place)print(place.categories)
place.load()
print(place)
```
See [examples](examples/basic.py) for more.
## Reference
Objects have the following structure
![objects](docs/diagrams/pyatlasobscura.png)