T
T
Tolik2014-08-01 21:50:02
linux
Tolik, 2014-08-01 21:50:02

How to make a sitemap using wget?

I know that it seems like you can download sites (he can extract links from downloaded files). I would like to know how to do it. Or at least get a list of all the files and directories there. Do you know how find works? Stupidly displays a list of all files with full paths to them (this is if without arguments). Something like this I would like

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentine, 2014-08-01
@Diel

We look at recursive queries and insert the necessary options

Y
Yuriy Malygin, 2014-08-07
@phs

There is a special parameter '-r' for this. Here is a simple example of how it works:

ph@laptop ~ $ cd /tmp/

ph@laptop /tmp $ wget -r malyg.in

ph@laptop /tmp $ find malyg.in/
malyg.in/
malyg.in/tag
malyg.in/tag/uefi
malyg.in/tag/bluetooth
malyg.in/tag/manual
malyg.in/tag/linux
malyg.in/novus-exertus
malyg.in/perekhod-na-ispolzovanie-uefi-v-gnu-linux
malyg.in/bluetooth-i-blokirovka-ekrana-v-gnu-linux
malyg.in/feed.xml
malyg.in/robots.txt
malyg.in/index.html

To limit the "depth" of walking on links, you must use the '-l' parameter.
A complete list of parameters can be found here - opennet.ru/man.shtml?topic=wget&category=1&russian=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question