This commit is contained in:
Kovid Goyal 2023-09-19 13:23:34 +05:30
commit cae829301b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -10,16 +10,14 @@ from datetime import date
# for example, replace 'cap' with 'toih', if you want Hyderabad edition. # for example, replace 'cap' with 'toih', if you want Hyderabad edition.
le = 'cap' # local edition; le = 'cap' # local edition;
date0 = date.today().strftime('%Y/%m/%d') date0 = date.today().strftime('%Y/%m/%d')
date_ = date.today().strftime('%d_%m_%Y')
# for older edition change both date0 and date_ below. # for older edition change date0 below.
# date0 = '2023/09/15' # date0 = '2023/09/15'
# date_ = '15_09_2023'
year, month, day = (int(x) for x in date0.split('/')) year, month, day = (int(x) for x in date0.split('/'))
dt = date(year, month, day) dt = date(year, month, day)
date_ = dt.strftime('%d_%m_%Y')
index = 'https://asset.harnscloud.com/PublicationData/TOI/' + le + '/' + date0 index = 'https://asset.harnscloud.com/PublicationData/TOI/' + le + '/' + date0
img_index = 'https://cmsimages.timesgroup.com/image-resizer?epaper_s3_path=PublicationData/TOI/' + le + '/' + date0 img_index = 'https://cmsimages.timesgroup.com/image-resizer?epaper_s3_path=PublicationData/TOI/' + le + '/' + date0