An option to either merge all pdfs for the selected subject or send them individually.
In the future:
-
To save time, keep merged copies stored locally (heroku doesn't allow saving to disk permanently, so might wanna look into storing it someplace else)
-
When a merged pdf for a particular subject is requested, check if May or December has passed, and if it has, scrape the PDFs again and replace the previously merged pdf with a new one, accounting for new papers being uploaded on the site.
An option to either merge all pdfs for the selected subject or send them individually.
Download the pdf on the bot server,
Utilise PyPDF2 to merge the PDFs
Send to the user.
In the future:
To save time, keep merged copies stored locally (heroku doesn't allow saving to disk permanently, so might wanna look into storing it someplace else)
When a merged pdf for a particular subject is requested, check if May or December has passed, and if it has, scrape the PDFs again and replace the previously merged pdf with a new one, accounting for new papers being uploaded on the site.