()
| 69 | |
| 70 | |
| 71 | def _make_session() -> requests.Session: |
| 72 | s = requests.Session() |
| 73 | s.headers.update( |
| 74 | { |
| 75 | "User-Agent": USER_AGENT, |
| 76 | "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8", |
| 77 | "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", |
| 78 | } |
| 79 | ) |
| 80 | return s |
| 81 | |
| 82 | |
| 83 | def _request_with_retry( |