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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file linux_do_connect_token-0.0.1.tar.gz.

File metadata

  • Download URL: linux_do_connect_token-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 117a9f45d7e544bd0a00a8b077a3520fa226fdfeab355592a3ae8c821ac4b24c
MD5 8ed43c0cd8f3182b3676b61e43504c19
BLAKE2b-256 117f79216653af6996672a1eb74fe656004e6ebb96e878e1a75a9ea61f31a8b2

See more details on using hashes here.

File details

Details for the file linux_do_connect_token-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for linux_do_connect_token-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 035f9f7e5ef654d6f805fe27a380ea642b9f0dbcfe81fdd009212b43b2042ad2
MD5 8fb55c71687bdf3b3e35b8e7ad365690
BLAKE2b-256 f4f732519e63a4edf6e4721e6bfb118216a1a7013713bc78178534374f1d396a

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