Comments (8)
Python 2 compatibility does not have to maintained, particularly for a specific feature.
from webscreenshot.
Hello, try to play with --ajax-max-timeouts
.
And take a look at this
from webscreenshot.
My use case is Icingaweb2 (Icinga2 web front end), the page loads, but the screenshot is taken so quick the alerts are not loaded:
It would be nice to have the engine load the page, and allow the scrape request to wait X seconds.
Possibly related:
from webscreenshot.
Hello, try to play with
--ajax-max-timeouts
.
And take a look at this
Hello!
--ajax-max-timeouts works only for PhantomJS, isn't it?
I have the same problem. Some pages don't load because screenshots is done too fast. (i'm using -r chromium)
It is good idea to add a request waiting. If you add this function i will be very grateful.
Thank you.
from webscreenshot.
I'm working on a fork that will use the Devtools protocol to manage the screenshot process for Chromium based browsers such as Chrome. I've ran into the same issue in the past, specially with those sites that have some sort of WAF protection that is not very agressive, but it requires to wait for at least 5 seconds to render the requested page.
With the aid of the Devtools protocol running the browser in remote debugging mode, some of the PhantomJS exclusive functions can be implemented in Chrome, such as image cropping, screenshot delay, http headers and cookies control, etc, etc. The only caveat I see with this implementation is the use of the "websockets" lib needed to interact with the browser, because it requires python 3, and it will break backwards compatibility with python 2 :(
Do you guys know any websocket library compatible with python 2?
from webscreenshot.
Awesome :)
from webscreenshot.
Hello @maaaaz .
Here is my suggested approach to implement the Devtools protocol in the script.
It's not complete yet, and there are a lot of tests to run, but it will give you a general idea of where this is going:
Running Chrome / Chromium in remote debugging mode: Line 325
Screenshot function (currently supporting PDF, JPG and PNG formats, image quality for JPG and screenshot delay): Line 765
I'll be implementing other functions from the PhantomJS renderer and then I will start the heavy testing, but for now I will be uploading new changes to the experimental branch.
Regards ;)
Edit:
Added --crop option support: Line 950
Edit:
Added --cookie option support: Line 828
Edit:
Added --header option support: Line 815
from webscreenshot.
Dear maaaaz
Really looking forward for the implementation of this feature - hopefully you'll be able to add it soon :)
from webscreenshot.
Related Issues (20)
- Screenshot not being saved HOT 4
- Webscreenshot.py making a weird screenshot (used within different python script) HOT 5
- Obtain output file name
- Shell command PID XXXXX returned an abnormal error code: '-11' HOT 4
- [ERROR][https://www.gpw.pl:443/session-details] Shell command PID 5346 returned an abnormal error code: '1' HOT 4
- custom filename with timestamp suffix HOT 3
- Domain does not gets formatted automatically due to which command fails HOT 2
- This platform lacks of sem_open HOT 2
- renderer binary could not have been found in your current PATH environment variable, exiting HOT 1
- very long url, (have fix) HOT 1
- No X server has been found and the xvfb-run binary could not be found, please install xvfb on your system HOT 1
- Not working Truceback HOT 2
- phantomjs error HOT 1
- Can't Screenshot NASA-Website HOT 1
- I've not found any way to resume the screenshots process.
- Redirect
- renderer binary could not have been found in your current PATH environment variable, exiting HOT 1
- No X server has been found and the xvfb-run binary could not be found, please install xvfb on your system HOT 1
- i cant take screenshot HOT 2
- openSquat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webscreenshot.