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

Inlining local file #3

Open
pc1oad1etter opened this issue Dec 1, 2017 · 1 comment
Open

Inlining local file #3

pc1oad1etter opened this issue Dec 1, 2017 · 1 comment

Comments

@pc1oad1etter
Copy link

I am trying to inline an HTML file and its images stored on my local machine. I see the option -I for specifying a name from the local directory, and -l, to not download data.

However, I'm seeing that the URI argument is required. What should I supply as the argument for the URI? I have a file "custom.html" in my current working directory. I have tried using the "custom.html", "./custom.html", and "file://custom.html":
~/dev/python-html-inliner/inliner.py -d tmp -u file://custom.html -il --prettify --verbose > custominliner.html

each time it tells me that no html files could be found in the tmp folder.

How can I accomplish this?

@fscz
Copy link
Owner

fscz commented Dec 2, 2017

inliner.py -u http://doesnotmatter.com -d $FOLDEROFCUSTOMHTML -i custom.html -l -p

You can try this. But this script was written to download from a server. Not sure if this works.

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