No project description provided
Project description
Vsco Api
A python package that provides convenient functions for grabbing user posts.
Installation
pip install vsco-api
Sample Usage
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vsco_api-0.2.0.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vsco_api-0.2.0.tar.gz.
File metadata
- Download URL: vsco_api-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9c4fa9d0a629184c193ff87ab22ac71c245414bcaab10eab53ff535627c5fa1
|
|
| MD5 |
2d29d543d8696232fc147c7f861848de
|
|
| BLAKE2b-256 |
9214d8398f6c3d464b17ae2b621445e13ef04a58ad5c22f232d5f36f3aea7a29
|
File details
Details for the file vsco_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vsco_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982d3560f5557861bf6ce67ccbf9678629a6cd883f452a1a0dbd468760e3dfaf
|
|
| MD5 |
a16b983434ec006cf8f82df8db4ebfff
|
|
| BLAKE2b-256 |
429cc6986dd87b70a993a8ef3dba44a1569fded927eab2d0b6838a221861cde0
|