P
P
Printip2017-11-23 19:44:42
linux
Printip, 2017-11-23 19:44:42

How to set wget regex?

Hello! When I download the site, I get links like this:

https://site.com/&sl=&sp=nmt4&tl=&u=https://site.org/?832947r
https://site.com/&sl=&sp=nmt4&tl=&u=https://site.net/?832947r
https://site.com/&sl=&sp=nmt4&tl=&u=https://site.biz/?832947r
https://site.com/&sl=&sp=nmt4&tl=&u=https://site.ru/?832947r
https://site.com/&sl=&sp=nmt4&tl=&u=https://site.biz/?832947r

Please tell me how to tell wget to download pages only if the link contains the text site.biz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Hog, 2017-11-23
@Skiphog

If you look
There are parameters
--accept-regex=РЕГВЫР- regular expression for allowed URLs
--reject-regex=РЕГВЫР- regular expression for forbidden URLs
Have you tried it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question