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.1.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.1.tar.gz.
File metadata
- Download URL: vsco_api-0.2.1.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 |
c286e42fa4a3f9bed5d357fdb1712f37e64f44f101e059f2d468cfe986618fde
|
|
| MD5 |
171367912971734fb900d808adde3173
|
|
| BLAKE2b-256 |
fb2391e9ef91000c07621f82aaa2f59af5abae6af00c0e3a66ab166051d6f31e
|
File details
Details for the file vsco_api-0.2.1-py3-none-any.whl.
File metadata
- Download URL: vsco_api-0.2.1-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 |
3866ca0de4bfce57b90809cad4452ae9af9e5b7791f7207f0ea1fbb7f001bf98
|
|
| MD5 |
e91c21f69e183a54960ea12f59c5a96a
|
|
| BLAKE2b-256 |
145d645b05541724c526a39094e359d20730918a2202c9b39ed078ac709a9c7b
|