|
|
#1 |
|
Junior Member
![]() ![]() Posts: 3
Karma: 158
Join Date: Oct 2022
Device: Kobo Sage
|
Guardian/Observer with cover
Hello, I added the following to the Guardian/Observer recipe so it would download the appropriate cover:
Code:
def get_cover_url(self):
from datetime import date
coverdate = date.today()
if coverdate.weekday() == 6:
cover = (
'https://www.thepaperboy.com/frontpages/archive/The_Observer_'
+ str(coverdate.day) + '_' + str(coverdate.month) + '_'
+ str(coverdate.year) + '_400.jpg')
else:
cover = (
'https://www.thepaperboy.com/frontpages/archive/The_Guardian_'
+ str(coverdate.day) + '_' + str(coverdate.month) + '_'
+ str(coverdate.year) + '_400.jpg')
return cover
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,606
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Guardian/Observer recipe not working 1/4/22 | paddyrm | Recipes | 18 | 08-06-2022 11:22 PM |
| Guardian/Observer recipe broken | paddyrm | Recipes | 5 | 08-04-2021 05:43 AM |
| The Guardian / Observer (UK) | ribena | Recipes | 3 | 11-19-2014 10:38 AM |
| The guardian &Observer | didsbury | Calibre | 1 | 01-26-2013 07:57 AM |
| The Guardian/The observer broken recipe ? | wingmongyee | Recipes | 6 | 07-08-2011 10:38 PM |