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

Use current time to update latest stock list info from official sites #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

paullo0106
Copy link

I think it would be more convenient and make more sense to use the current time rather than a hard-coded past time for generating csv files of the latest stock info, that's the main reason I made those changes :p

@toomore
Copy link
Owner

toomore commented Nov 20, 2014

@paullo0106 這遇到六日或是沒開市日就抓不到資料 XD,不過感謝你的 PR,我這禮拜加入,感謝你。

@paullo0106
Copy link
Author

Oh yeah, I didn't think of weekend issue.
Just made some more changes on those two files using urllib3 consistently (previously opened by you in issue #7)

@paullo0106
Copy link
Author

@toomore 針對你提的"六日或是沒開市日"的問題,我剛才加了一些程式碼: base on你原本的TWSEOpen d_day()延伸了一個recent_open_day() function,如果今天沒開市就往前一天去check,直到有開市的那天為止。 (原本在想會不會有infinite loop,但我還沒有試出這樣的日期,看起來d_day()支援的時間區間似乎滿完整的)

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.

2 participants