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
Thought I'd share in case anyone else wanted this