Skip to main content

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

Project description

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 ↗ to install VKAuth.

pip install vkauth

Usage

from vkauth import VKAuth

auth = 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')

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 ↗

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vkauth-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

vkauth-1.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page