Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Unnecessary API Requests (ryanking13#296) #297

Merged
merged 1 commit into from
Jan 31, 2025

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