Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 SearchType

for 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)