Closed Clarissa-Valentine-Z closed 1 year ago
I have indeed made the change to the saving code as to create a folder if it doesn't exist!
As to renaming the files instead of using "0.html" etc, that would require me to either rename each of the past files I have uploaded (which I can't be bothered to do), or also rewrite the client-side code for the web interface to work with both systems of naming. I would rather leave it as-is, really 😛
Thanks!
That's fair enough with renaming, no worries about that! Your method works great to me, and the simple number names are okay. <3 For me, that's my preference in case my files get mixed up one day.
Thanks for the wonderful tool, it's amazing, and to be honest, far better than me opening 500 pages that slows down the computer and threatens to take all my RAM. :P
Have a good one!
Closing the issue now.
Actually nice code, I am using it after I added in my name as the requester / user of the code. Thanks!
A couple of suggestions, if I may:
file = open(tn + '/' + str(tn) + " - Page " + str(item+1) + '.html', 'w', encoding='utf-8')
I can't test out the PDF saving, exception on my side; trying to work out my virtual env on what's wrong.
Thanks! :)
EDIT: You will need
import os
, sorry to forget that detail.