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

NoResultsError 에러 발생 특정날짜 (아마도 연휴기간) #31

Closed
junhoi-pk opened this issue Jan 20, 2020 · 4 comments
Closed

Comments

@junhoi-pk
Copy link

>>> print(korail.search_train('광명', '동대구', '20200129')[0])
[KTX-산천] 1월 29일, 광명~동대구(15:26~16:58) 특실,일반실 41,300원 5%적립

>>> print(korail.search_train('광명', '동대구', '20200122')[0])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "korail2/korail2.py", line 788, in search_train
    raise NoResultsError()
korail2.korail2.NoResultsError: No Results (None)

특정날짜 1월 22~25일까지에는
NoResultsError 가 발생하는데, 아마 연휴 기간이라서 발생하는 에러 같습니다.

아직까지 코레일톡 공식앱에서는 잘 조회되는걸로는 보입니다.

@carpedm20
Copy link
Owner

제 기억이 맞다면 연휴 기간의 예약은 이 라이브러리에 구현된 api로는 안될겁니다.

@junhoi-pk
Copy link
Author

@carpedm20 네 확인감사합니다 :)

@junhoi-pk
Copy link
Author

@carpedm20 혹시 수정 및 업데이트 계획은 있으신가요??

@sng2c
Copy link
Collaborator

sng2c commented Jan 27, 2020 via email

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

No branches or pull requests

3 participants