Metadata-Version: 2.4
Name: linux-do-connect-token
Version: 0.0.2b1
Summary: A helper library to authenticate with connect.linux.do and retrieve auth.session-token
License: MIT
License-File: LICENSE
Author: Sn0wo2
Requires-Python: >=3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: curl-cffi (>=0.14.0,<0.15.0)
Description-Content-Type: text/markdown

# Linux Do Connect Token

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

---

[![GitHub release](https://img.shields.io/github/v/release/Sn0wo2/linux-do-connect-token?color=blue)](https://github.com/Sn0wo2/linux-do-connect-token/releases)

[![Python CI](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/py.yml/badge.svg)](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/py.yml)
[![Release](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/release.yml/badge.svg)](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/release.yml)
[![CodeQL Advanced](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/codeql.yml/badge.svg)](https://github.com/Sn0wo2/linux-do-connect-token/actions/workflows/codeql.yml)

---

## Usage

> See example

---

## Get the `_t` Cookie

1. Open InPrivate page(Because token refresh)
2. Log in to [linux.do](https://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 值。

