1Danish-00 / HtmlWebShot

A python3 package which Can Create Images From url, Html-CSS, Svg and from any readable file and texts with many setup features.

Home Page:https://pypi.org/project/htmlwebshot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG REPORT]: Query String on Local File Not Working

i-vone opened this issue · comments

commented

Your System?

Windows 10

Version

3.8

Version

latest

What happened?

When I try to take a screenshot of a local file whilst providing a URL query string, it does not work. My assumption is that it tried to look for a file which contains the query string in the filename.

Paste Your Codes.

shot.create_pic(html=r"folder\file.html?username=hi", css=r"folder\tweet.css", output="output.jpg")

Your Error Logs.

It does not output an error

Your System?

Windows 10

Version

3.8

Version

latest

What happened?

When I try to take a screenshot of a local file whilst providing a URL query string, it does not work. My assumption is that it tried to look for a file which contains the query string in the filename.

Paste Your Codes.

shot.create_pic(html=r"folder\file.html?username=hi", css=r"folder\tweet.css", output="output.jpg")

Your Error Logs.

It does not output an error

Have u installed wkhtmltopdf for windows?

And set path Configuration?

And you have to put exact file path or html string for it to work.

and its not giving error log 🤔, that's an issue i'll check it.

commented

Yes, I have. It works on local files (and also online webpages) when I don't provide a query string...

Yes, I have. It works on local files (and also online webpages) when I don't provide a query string...

well then yes , it won't work on query string 😅