simonw / simonw/shot-scraper

How can I avoid 403 error?

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.6k
Forks
128
Avg merge
9d 15h
Merged PRs (30d)
2

Description

Hi,
thank you for this great tool.

If I run

shot-scraper https://elezioni.interno.gov.it/europee/scrutini/20240609/scrutiniEI5190550010

I have a png with 403 error. If I browse the page with a browser I have no problem to read its real content.

Are there some parameters I can add to avoid the 403 error I have?

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied shot-scraper command against the reported URL and compare its response with browser behavior. Trace the CLI's Playwright invocation and request handling to determine whether supported parameters can avoid the 403; done means documenting or exposing a confirmed approach, or clearly recording that none is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.