in Python I'd like to collect data from the Meteorological Agency. API data is updated every day at 06:00 am and 18:00 pm The request time information must be passed as a required parameter. Is there a simple code to tell if you want to pass ex) 202104050600 or 202104051800 at the time of request?
python
What you're asking is more of a business logic to write it than the code itself. The code itself is a bit vainly simple, because it's more important to think about getting the right answer.
So the data that you can get at X:Y every day is an integer N obtained by doing X * 100 + Y
, and if N exceeds a certain value, it seems to follow the rule of A, or B.
Please try it yourself from here on out here. You'll do it in a minute.
© 2024 OneMinuteCode. All rights reserved.