View Single Post
Old 01-20-2021, 05:50 PM   #1
magneticsubset
Junior Member
magneticsubset began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite
WSJ changed print edition url

Hey guys I'm working with the wall street journal prebuilt recipe and the url format for the print edition changed by adding in today's date for the print edition. Previously it was

WSJ_ITP = 'https://www.wsj.com/print-edition/today'

They have changed it from "/today" to the days date "yearmonthday" (20210120) so the new url is https://www.wsj.com/print-edition/20210120

If I manually customize the recipe I can get the print edition to download correctly but that requires me to update the script every night manually with the next day's date to run in the morning. How can I automate this for the script to automatically put in today's date?
magneticsubset is offline   Reply With Quote