maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
653 stars 162 forks source link

Unable to get complete url screenshot #49

Closed sarath4 closed 4 years ago

sarath4 commented 4 years ago

Unable to get complete url screenshot

maaaaz commented 4 years ago

More details maybe ?

sarath4 commented 4 years ago
jboss

I have attached an image, like am trying to access the Jboss url. But it shows only the image not with the url (Complete screenshot with the url what we are trying to access)

Expected output: we should be able to see like our page with the url image

maaaaz commented 4 years ago

I'm sorry but I don't understand. You want a screenshot with the URL displayed inside ? Use the --label option.

sarath4 commented 4 years ago

when i run the command am unable to find the screenshot with url with the output like below. image

sarath4 commented 4 years ago

When i run the command i can see only the way is like below. Here there was no url image

maaaaz commented 4 years ago

Ahh you mean that the URL/address bar is not shown ? Wow it took me a lot of time to understand !

It seems that neither phantomjs nor chrome headless can show the bar. But still you can use the --label option of webscreenshot.

sarath4 commented 4 years ago

Can you please help with the complete option How to get the url.

Example multiple urls:

  1. https://www.google.com
  2. https://www.facebook.com

Can you please provide the full command how to run and get the output with url/address also.

sarath4 commented 4 years ago

Can you please help me with the complete command withe label option.

maaaaz commented 4 years ago

$ webscreenshot google.com --label

sarath4 commented 4 years ago

am getting below error. C:>D:\python\python C:\Users\kumaalla\Downloads\webscreenshot-master\webscreenshot-master\webscreenshot.py www.google.com --label webscreenshot.py version 2.9

[+] 1 URLs to be screenshot [ERROR][http://www.google.com:80] Shell command PID 17960 returned an abnormal error code: '4' [ERROR][http://www.google.com:80] Screenshot somehow failed

[+] 1 actual URLs screenshot [+] 0 error(s)

maaaaz commented 4 years ago

https://github.com/maaaaz/webscreenshot/wiki/ImageMagick-installation

sarath4 commented 4 years ago

HI This time command was successful but the URL/address bar is not shown ?

D:\python\python C:\Users\kumar\Downloads\webscreenshot-master\webscreenshot-master\webscreenshot.py www.google.com --label --imagemagick-binary C:\Users\kumar\Downloads\imagemagic webscreenshot.py version 2.9

[+] 1 URLs to be screenshot [+] 1 actual URLs screenshot [+] 0 error(s) image

maaaaz commented 4 years ago

Great ! It seems that something went wrong after the capture, before imagemagick converting the image to add the URL. Can you try again with the -vvv option to have a verbose output ?