packt-cli / Packt-Publishing-Free-Learning

Scripts that automatically claim and download free daily eBooks from https://www.packtpub.com/packt/offers/free-learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the date to the folder/file name

tiredoftry opened this issue · comments

commented

Packt free learning is great, but many of the titles can be a bit outdated. Adding the published year to the save path and/or file name would allow seeing the 'freshness' faster since it would not require opening each book/video.

Example - 'Flutter_for_Beginners.zip' would be 'Flutter_for_Beginners_2019.zip' or would be stored in a folder name 'Flutter_for_Beginners_2019'.

The published date is available in the PACKT_PRODUCT_SUMMARY_URL api JSON as 'publicationDate'.