Skip to content

Commit

Permalink
[DOC] Add explanation of proxy in README (#22)
Browse files Browse the repository at this point in the history
* [DOC] Update README and add explanation of proxy

* docs: polish README

---------

Co-authored-by: Wenhao Chen <cwher@outlook.com>
  • Loading branch information
nonhana and CWHer authored Sep 25, 2024
1 parent fe1bd10 commit ee39b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ The configurations locate at [`config.py`](./pixiv_utils/pixiv_crawler/config.py
network_config.proxy["https"] = ""
```

The default `proxy["https"]` value is `127.0.0.1:7890`, which is the default proxy port of clash. It needs to be changed according to the actual proxy settings. **If you do not need a proxy, please set the https attribute to "".**

- `network_config.headers: Dict`: The headers used in the request.

- `UserConfig`
Expand Down
2 changes: 2 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ if __name__ == "__main__":
network_config.proxy["https"] = ""
```

默认 `proxy["https"]` 值为 `127.0.0.1:7890`,即 clash 的默认代理端口,需要根据实际的代理设置进行变更。**如果无需代理,请将 https 属性置为""**

- `network_config.headers: Dict`: 请求中使用的标头。

- `UserConfig`
Expand Down

0 comments on commit ee39b7d

Please sign in to comment.