L
L
logomorie2015-12-10 15:02:03
Monitoring
logomorie, 2015-12-10 15:02:03

Is there a way to take screenshots of a given site every n seconds without opening it in a browser?

And the ability to monitor multiple sites in parallel would be a big plus.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MetaDone, 2015-12-10
@logomorie

selenium-python.readthedocs.org/installation.html

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://example.com')
browser.save_screenshot('screenshot.png')

You can open new tabs and take screenshots in them.
The whole thing can be run without a display, for example on server Linux
www.alittlemadness.com/2008/03/05/running-selenium...

L
lukoie, 2015-12-10
@lukoie

www.s-shot.ru to fasten the API of this service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question