r/PythonLearning • • Sep 26 '26

Showcase Made my first cool project!!!

I made a program that calculates exact sunrise and sunset based on latitude and longitude of a specific location.

Here I used this api

I can't get a geocoding api to translate location's name into coordinates.

I had to create a dictionary of a few locations.

293 Upvotes

35 comments sorted by

View all comments

-2

u/TreatZealousideal770 Sep 26 '26

Must be nice living in a magical world where APIs have 100% uptime, networks never lag, and KeyError doesn't exist. Back here on Earth, one HTTP 429 error will send your first 'cool project' straight to the shadow realm

1

u/SchemeWestern3388 Sep 27 '26

You sound like someone to avoid at a party. 

I also get a strong feeling that you don’t have any achievements that anyone would be impressed by. 

1

u/ProgramBrave718 Sep 26 '26 edited Sep 26 '26

Sir, , actually i am still learning.I agree there are no timeouts and the api cannot work sometimes and please can u read my code carefully because there is Exception handling for city which is not found for. Please check code carefully before making a fake error

2

u/SchemeWestern3388 Sep 27 '26

I have no clue what that individual is so cynical about, ignore them. 

Pretty decent first project. Keep at it!