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

Take screenshot in case of an error #150

Open
uppaljs opened this issue May 15, 2024 · 0 comments
Open

Take screenshot in case of an error #150

uppaljs opened this issue May 15, 2024 · 0 comments

Comments

@uppaljs
Copy link

uppaljs commented May 15, 2024

Hi,

I am trying to write use shot-scraper for writing some test cases to see if adult sites are blocked / open on my network.

shot-scraper http://blockeddomain.com --log-requests -

raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None

playwright._impl._errors.Error: Page.goto: net::ERR_CONNECTION_RESET at http://blockeddomain.com/
Call log:
navigating to "http://blockeddomain.com/", waiting until "load"

How can I make shot-scraper take a screenshot even if the connection is reset or the page doesnt resolve and throws a dns error etc?

Thanks,

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

1 participant