Skip to content

Reduce Unnecessary API Requests (ryanking13#296)#297

Merged
ryanking13 merged 1 commit intoryanking13:masterfrom
tskim-cs:feature/296
Jan 31, 2025
Merged

Reduce Unnecessary API Requests (ryanking13#296)#297
ryanking13 merged 1 commit intoryanking13:masterfrom
tskim-cs:feature/296

Conversation

@tskim-cs
Copy link
Contributor

Resolves #296

@tskim-cs
Copy link
Contributor Author

Call search_train('부산', '수서', '20250202', '045000', '051000'), setting logging level of urllib3.connectionpool to DEBUG.

Before

2025-01-30 23:13:18.327 | DEBUG | urllib3.connectionpool | http://nf.letskorail.com:80 "GET /ts.wseq?... HTTP/1.1" 200 107
2025-01-30 23:13:18.613 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None
2025-01-30 23:13:18.883 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None
2025-01-30 23:13:19.213 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None
2025-01-30 23:13:19.436 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None
2025-01-30 23:13:19.548 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None
2025-01-30 23:13:19.627 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None

After

2025-01-30 23:12:24.919 | DEBUG | urllib3.connectionpool | http://nf.letskorail.com:80 "GET /ts.wseq?... HTTP/1.1" 200 107
2025-01-30 23:12:25.302 | DEBUG | urllib3.connectionpool | https://app.srail.or.kr:443 "POST /ara/selectListAra10007_n.do HTTP/1.1" 200 None

Copy link
Owner

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ryanking13 ryanking13 merged commit 4061233 into ryanking13:master Jan 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce Unnecessary API Requests with Time Limit Check

2 participants