Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dedinc/vkauth
VKAuth is a Python library that helps you to authenticate with VK.com using cookies from your browser. The library automatically fetches required cookies from supported browsers, establishes a session, and retrieves an access token.
https://github.com/dedinc/vkauth
access-token vk-api vkauth vkon
Last synced: 7 days ago
JSON representation
VKAuth is a Python library that helps you to authenticate with VK.com using cookies from your browser. The library automatically fetches required cookies from supported browsers, establishes a session, and retrieves an access token.
- Host: GitHub
- URL: https://github.com/dedinc/vkauth
- Owner: DedInc
- License: mit
- Created: 2023-09-03T04:41:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-03T06:01:11.000Z (about 1 year ago)
- Last Synced: 2024-09-26T05:00:13.885Z (7 days ago)
- Topics: access-token, vk-api, vkauth, vkon
- Language: Python
- Homepage: https://pypi.org/project/vkauth/
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# VKAuth Library
VKAuth is a Python library that helps you to authenticate with VK.com using cookies from your browser. The library automatically fetches required cookies from supported browsers, establishes a session, and retrieves an access token.
## Features
- Automatic fetching of cookies from supported browsers
- Establishing a session with VK.com
- Fetching access token for user and group scopes## Installation
Use the package manager [pip ↗](https://pypi.org/project/vkauth/) to install VKAuth.
```bash
pip install vkauth
```## Usage
```python
from vkauth import VKAuthauth = VKAuth()
# to get a user token
user_token = auth.get_token()# to get a group token
group_token = auth.get_token(group_id='your_group_id')#to get cookies
cookies = auth.session.cookies
remixsid = cookies['remixsid']
remixnsid = cookies['remixnsid']
p = cookies['p']
```## Supported Browsers
- Google Chrome
- Yandex Browser
- Mozilla Firefox
- Microsoft Edge
- Opera
- Opera GX## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT ↗](LICENSE)## Disclaimer
This library is intended to be used for educational purposes only. Never use it to exploit or harm someone's privacy without their consent. The maintainers of this library are not responsible for any misuse by the users.## Contact
For any issues or suggestions, please create an issue on the GitHub repository.