💭 simonw/shot-scraper: A command-line utility for taking automat...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

!https://github.com/simonw/shot-scraper

Date: August 16, 2023

Image: GitHub - simonw/shot-scraper: A command-line utility for taking automated screenshots of websites — A command-line utility for taking automated screenshots of websites - simonw/shot-scraper <https://repository-images.githubusercontent.com/467679579/52765249-ede7-4e86-87b1-0a11c4406ec3> GitHub - simonw/shot-scraper: A command-line utility for taking automated screenshots of websites A command-line utility for taking automated screenshots of websites - simonw/shot-scraper GitHub · github.com

[38;2;248;248;242m[code][0m
      > A command-line utility for taking automated screenshots of websites

Daaaang, this is such an elegantly simple way to get web screenshots with a cli. I was literally up and running with two commands on my arch linux machine (which it warned was unsupported by playwright).

[38;2;248;248;242m[code][0m
  pip install shot-scraper
  # Now install the browser it needs:
  shot-scraper install
  shot-scraper waylonwalker.com
  shot-scraper https://datasette.io/ 
  shot-scraper https://datasette.io/ -h 1280 -w 1920
  shot-scraper https://datasette.io/ -h 480 -w 720
  shot-scraper shot --selector '#posts' https://thoughts.waylonwalker.com/post/89

[38;2;248;248;242m│ [0mNote [38;2;189;147;249mshot-scraper https://datasette.io/[0m is a full length screenshot of the entire page.

Oh and its pretty dang fast, let alone the setup time, this crushes on startup time in my attempts to use a headless browser in the past.

[38;2;68;71;90mNOTE[0m
[38;2;68;71;90m│ [0mThis post is a [4m[38;2;248;248;242mthought[0m <[38;2;248;248;242m/thoughts/[0m>. It’s a short note that I make about someone else’s content online #thoughts
