You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of issues like the following #56
It would be useful to have support for relative paths, especially when the code is used in Jupyter Notebooks for maximum compatibility.
Right now I kind of hack it with this solution:
importos# borrowed from https://stackoverflow.com/a/14125914relative_path=r'book_test'current_directory=os.getcwd()
final_directory=os.path.join(current_directory, relative_path)
ifnotos.path.exists(final_directory): os.makedirs(final_directory)
website='https://www.nateliason.com/notes'# or whatever targetfrompywebcopyimportsave_websitesave_website(website, project_folder=final_directory)
Some notes: can only get a single page instead of the whole website.
The text was updated successfully, but these errors were encountered:
Because of issues like the following #56
It would be useful to have support for relative paths, especially when the code is used in Jupyter Notebooks for maximum compatibility.
Right now I kind of hack it with this solution:
Some notes: can only get a single page instead of the whole website.
The text was updated successfully, but these errors were encountered: