Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output file names when using --urls-file #48

Open
YenForYang opened this issue Aug 13, 2023 · 1 comment
Open

Output file names when using --urls-file #48

YenForYang opened this issue Aug 13, 2023 · 1 comment

Comments

@YenForYang
Copy link

Is there a way to specify output file names when using --urls-file? I tried adding the filename after the url and it doesn't appear to work (no error either).

@oderyn
Copy link

oderyn commented Sep 23, 2023

Do you mean the ability to set the pattern of the filename or have the filename output to the terminal when single-file is run?

To define the filename template, you would do something like this:

--output-directory="/path/to/output/directory/" --filename-template="{url-pathname}.html"

The cool thing is that you can also add a directory structure to --filename-template. In fact, the url-pathname will use the directory structure from the website when it saves the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants