Metadata-Version: 2.1
Name: vsco-api
Version: 0.2.1
Summary: 
Author: lockermanwxlf
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.32.3,<3.0.0)
Description-Content-Type: text/markdown

# Vsco Api

A python package that provides convenient functions for grabbing user posts.

## Installation
```bash
pip install vsco-api
```

## Sample Usage
```python
import vsco_api
import time

# Use the authorization token of your own account
vsco_api.set_bearer_token('Bearer xxxxxxx...')

# Get site id by username
site_id = vsco_api.get_site_id('username here')

# Get the first page of posts
page, next_cursor = vsco_api.get_media_page(site_id)

# Iterate through all pages of posts
for page in vsco_api.ProfileIterator(site_id):
    for post in page:
        print(post.download_url, post.timestamp, post.type)
        is_image = post.type == vsco_api.VscoMediaType.IMAGE
        
    time.sleep(5)

```

