Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet authored Aug 27, 2024
1 parent 4d1d252 commit 4b32e50
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Pixiv go 客户端, 使用 PIXIV 网页 API。

详细使用方法以代码注释为准

2024-08-27: 账号密码登录方式已失效,手动登录获取 PHPSESSID 代替

```go
package main

Expand All @@ -39,11 +41,6 @@ c := &client.Client{}
c.SetDefaultHeader("User-Agent", client.DefaultUserAgent)
c.SetPHPSESSID("PHPSESSID")

// 通过账号密码登录(可能触发 reCAPTCHA)。
c := &client.Client{}
c.SetDefaultHeader("User-Agent", client.DefaultUserAgent)
c.Login("username", "password")

// 启用免代理,环境变量 `PIXIV_BYPASS_SNI_BLOCKING` 不为空时自动为默认客户端启用免代理。
// 当前实现需求一个 DNS over HTTPS 服务,默认使用 cloudflare,可通过 `PIXIV_DNS_QUERY_URL` 环境变量设置。
// 必须在其他客户端选项前调用 `BypassSNIBlocking`,因为对于封锁的域名它会使用一个更改过的 Transport 进行请求,无视在它之前进行的的设置。
Expand Down

0 comments on commit 4b32e50

Please sign in to comment.