https://github.com/wxllow/whatnot
Work-in-progress unofficial asynchronous API wrapper for Whatnot API.
https://github.com/wxllow/whatnot
api api-wrapper async asyncio python whatnot wrapper
Last synced: 6 months ago
JSON representation
Work-in-progress unofficial asynchronous API wrapper for Whatnot API.
- Host: GitHub
- URL: https://github.com/wxllow/whatnot
- Owner: wxllow
- License: mit
- Created: 2022-07-09T19:15:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T15:35:11.000Z (about 2 years ago)
- Last Synced: 2025-10-13T12:11:48.952Z (9 months ago)
- Topics: api, api-wrapper, async, asyncio, python, whatnot, wrapper
- Language: Python
- Homepage: https://pypi.org/project/whatnot/
- Size: 142 KB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# Whatnot API
Work-in-progress unofficial asynchronous API wrapper for [Whatnot](https://www.whatnot.com) API.
***Currently, authorized actions are currently broken due to API changes, however, most of the project is still usable. If you would like to help fix it, please contribute :)***
If anyone wants to take on this project, let me know, because I do not have the time to work on it and I have no use for it anymore either way.
## Download
`poetry add whatnot` *or* `pip install whatnot`
## Roadmap
See [ROADMAP.md](ROADMAP.md)
## Example
```python
import asyncio
from whatnot import Whatnot
async def main():
async with Whatnot() as whatnot:
# Get the whatnot account
whatnot_user = await whatnot.get_user("whatnot")
print(whatnot_user.username)
# OR await whatnot.get_user_by_id("21123")
# Get user's lives
lives = await whatnot.get_user_lives(whatnot_user.id)
# Print out all of the lives
for live in lives:
print(live.title)
asyncio.run(main())
```
## Project Layout
- whatnot
- exc.py - Exceptions
- interactive_login.py - Interactive Login Tool
- queries.py - Queries
- types.py - Types
- utils.py - Utilities
- whatnot.py - Main class
## Disclaimer
This project is unofficial and is not affiliated with or endorsed by Whatnot.