Skip to main content

A api wrapper for lyntr`s api in python

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

lyntrpy

A api wrapper for lyntr`s api in python

How to make the .env file

In order to create a .env file you need 3 cookies:

  • _TOKEN_DO_NOT_SHARE
  • temp-discord-token
  • cf_clearance

The _TOKEN_DO_NOT_SHARE cookie is required to authenticate with the lyntr api.

The temp-discord-token cookie is only needed when creating an account (to my knowledge) so it can probaly left empty but i would stil set it.

The cf_clearance is used to authenticate with cloudflare and use the api and not be blocked. This cookie is known for expirering quickly, for now the solution is to manualy copy the cookie from a browser and paste it it (i am working on an automatic system).

Now that we know what each cookie does, how to actually get them? (please note the tutorial for getting the cookies is for firefox)

Firstly navigate to lyntr and press Control+S+I, you should be meet with this devtools open

Now navigate to the Storage tab devtools storage tab

And click on Cookies > https://lyntr.com devtools cookies tab open

Now copy the _TOKEN_DO_NOT_SHARE cookie to the file .env to a variable named TOKEN, the temp-discord-token cookie to temp-discord-token and the cf_clearance cookie to cf_clearance.

If you do all these steps correctly you should be able to start implementing the wrapper in your code.

Happy Codeing.

ToDo

  • Add photo support for lynting
  • Add auto cloudflare cookies collector from browser to .env is not required

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

lyntrpy-1.0.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lyntrpy-1.0.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file lyntrpy-1.0.0.tar.gz.

File metadata

  • Download URL: lyntrpy-1.0.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for lyntrpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 77e3a262b2078a261d68e3aebfb7008362f86df158623a98a1e7bb1b352cba79
MD5 6aadf54291c5fcbad626cc7041c5ca00
BLAKE2b-256 3de5075857f84902bdf64e96ddd20ea35bdfde7194e699305720b9e8637397a0

See more details on using hashes here.

File details

Details for the file lyntrpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: lyntrpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for lyntrpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33244857976457da4de04599fa8073c280623ff772480f75c7deb29edfd04cda
MD5 611a892c8b168f5164012b4b6ba67ae6
BLAKE2b-256 1d7b111fdd4fa459a0d08e78cbd2b6c89fdc8120f392117be8a3184d49a9aebe

See more details on using hashes here.

Supported by

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