If you don't want to scrape a Web page, or want this information when a network is not available, the hdate package will do (referenced from: https://unix.stackexchange.com/a/527031).
Here is an example for Topeka, KS: $ hdate -l N39.034722 -L W95.695556 -s -z -5 Saturday, 23 September 2023, eve of 9 Tishrei 5784 sunrise: 07:10 sunset: 19:18 hdate: ALERT: The information displayed is for today's Hebrew date. Because it is now after sunset, that means the data is for the Gregorian day beginning at midnight. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
signature.asc
Description: PGP signature