Crissium / variety-daily-verse

Display Bible Gateway's verse of the day on your Linux desktop
GNU General Public License v3.0
5 stars 4 forks source link

Feature Request #3

Closed Grafini closed 7 months ago

Grafini commented 1 year ago

First off, thanks so, so much for this! It's great! Small question: What font and colors are you using in the screenshot? Looks beautiful! I'd like to duplicate it. Is there a way to add more verses to the mix? Maybe cycle through the past week or year of the verse of the day? Thanks again!

Crissium commented 1 year ago

I use Minion Pro—which is proprietary, but I think you might find it online easily and the colour DBCFFE in hex (I believe it is lilac).

Is there a way to add more verses to the mix?

It should be easily done by simply downloading more versions and concatenating them into one piece. But the resulting parallel verses might be too long to be displayed on your desktop. Therefore, in my opinion, if you would like to dig deeper into today's lesson, maybe it is better to use a dedicated Bible study tool which can easily and elegantly display multiple versions side by side.

But well, here's how you could possibly do it if you really want the feature:

responses = [json.loads(requests.get('https://www.biblegateway.com/votd/get/?format=json&version=' + version).content) for version in []] # whatever you'd like
verses = ['%s' % (unescape(response['votd']['text'])) for response in responses]
quote = '\n'.join(verses)

Maybe cycle through the past week or year of the verse of the day?

I don't think it can be easily done. As far as I know, there's no way to query past verses of the day, at least Bible Gateway provides no API. But it is possible if you indeed log each verse of the day and then cycle through your local collection.