Skip to main content

A helper library to authenticate with connect.linux.do and retrieve auth.session-token

Project description

Linux Do Connect Token

A helper library to authenticate with connect.linux.do and retrieve auth.session-token


GitHub release

Python CI Release CodeQL Advanced


Usage

See example


Get the _t Cookie

  1. Open InPrivate page(Because token refresh)
  2. Log in to linux.do
  3. Open DevTools by pressing F12
  4. Go to the Application tab
  5. Expand Cookies in the left sidebar and select linux.do
  6. Find the _t cookie in the list
  7. Copy its value for later use
  8. Close InPrivate page(Dont logout linux.do)

请自行维护 Token 的生命周期。当 get_auth_token 返回的第二个参数不为 None 时,表示 Token 已刷新,请及时更新保存的 Token 值。

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

linux_do_connect_token-0.0.2b2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

linux_do_connect_token-0.0.2b2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file linux_do_connect_token-0.0.2b2.tar.gz.

File metadata

  • Download URL: linux_do_connect_token-0.0.2b2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for linux_do_connect_token-0.0.2b2.tar.gz
Algorithm Hash digest
SHA256 6929302d2537960c1878fd80bf0210d250a67a14d2a2bc57ffcfbee5215ce4c6
MD5 67330e2b08c88c3b42588bf8efd21d48
BLAKE2b-256 63f05de54a878a9abd21875847e89716d3c6bf8e7cf162cb8edfab825e6e051b

See more details on using hashes here.

File details

Details for the file linux_do_connect_token-0.0.2b2-py3-none-any.whl.

File metadata

File hashes

Hashes for linux_do_connect_token-0.0.2b2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7152a21c697e9d8b9d6ac03f1e471882c537d68b4aea4d9ea1d788c1e80c5bd
MD5 fbff9c7f84b9a87eee2e0a2a8323f4fa
BLAKE2b-256 0b404fddfff170300572f5936e8540c71e653385e5864f61689696c28ebca139

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