You are not logged in.

#1 2021-03-29 09:26:47

dreamer_x
Member
Registered: 2021-02-17
Posts: 11

How to take a snapshot of a site?

Hey! I need to take a snapshot of the site using a console application. I forgot what it's called. Help me remember.

Offline

#2 2021-03-29 10:47:13

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,688
Website

Re: How to take a snapshot of a site?

What kind of site? What kind of snapshot?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2021-03-29 10:48:20

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: How to take a snapshot of a site?

Perhaps "wget"?

It really depends on what exactly you mean by snapshot. HTML? PNG?

Offline

#4 2021-03-29 12:20:28

dreamer_x
Member
Registered: 2021-02-17
Posts: 11

Re: How to take a snapshot of a site?

Photo of the site with PNG format.

Offline

#5 2021-03-29 12:26:23

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to take a snapshot of a site?

Offline

#6 2021-03-29 13:49:30

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: How to take a snapshot of a site?

https://github.com/puppeteer/puppeteer can screenshot an entire web page. But I always just use the screenshot tool in Chrome developer tools.

Offline

#7 2021-03-31 13:24:49

dreamer_x
Member
Registered: 2021-02-17
Posts: 11

Re: How to take a snapshot of a site?

Hello.

2Morn, How to install puppeteer? I'm not found PKGBUILD file...

2ManyDogs, I don't understand how to snapshot the site via scrot. Can you help me please? In help I'm don't found parameter like URL.

Offline

#8 2021-03-31 14:31:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,545

Re: How to take a snapshot of a site?

schard wrote:

What kind of site? What kind of snapshot?

Do you want to download the webpage into a local copy (wget) or make a photo of what you currently see in your browser?
Browsers also allow you to print webpages, eg. into pdf's.

Offline

#9 2021-03-31 14:40:03

icar
Member
Registered: 2020-07-31
Posts: 562

Re: How to take a snapshot of a site?

If you want to download it, you could use a script [1] such as this:

wget \
     --recursive \ # Download the whole site.
     --page-requisites \ # Get all assets/elements (CSS/JS/images).
     --adjust-extension \ # Save files with .html on the end.
     --span-hosts \ # Include necessary assets from offsite as well.
     --convert-links \ # Update links to still work in the static version.
     --restrict-file-names=windows \ # Modify filenames to work in Windows as well.
     --domains yoursite.com \ # Do not follow links outside this domain.
     --no-parent \ # Don't follow links outside the directory you pass in.
         yoursite.com/whatever/path # The URL to download

[1]: https://gist.github.com/mikecrittenden/ … cf7e9f5c0c

Offline

#10 2021-03-31 14:43:29

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: How to take a snapshot of a site?

dreamer_x wrote:

Hello.

2Morn, How to install puppeteer? I'm not found PKGBUILD file...

Just follow the README file I guess. I am not an expert on npm myself, but e.g. on this page (https://bitsofco.de/using-a-headless-br … reenshots/) there is an example script that captures a website screenshot this way.

dreamer_x wrote:

2ManyDogs, I don't understand how to snapshot the site via scrot. Can you help me please? In help I'm don't found parameter like URL.

Scrot is for taking screenshots of the desktop. So it does not accept an URL, just an output filename.

Offline

#11 2021-03-31 15:12:13

dreamer_x
Member
Registered: 2021-02-17
Posts: 11

Re: How to take a snapshot of a site?

Thank you guys!

Offline

Board footer

Powered by FluxBB