1

What I'm currently doing right now is

wget www.example.com -m --warc-file="example.com"

which works fine for most sites, but for this particular site that I'm saving, there are over a thousand redundant pages, such as www.example.com/eventsf[0]=event_calendar5, while keeping the main www.example.com/events site?

1
1

If you're using a relatively newer version of Wget (One released less than 6 years ago), then you can use the --accept-regex or --reject-regex options to use a regular expression and reject filter the URLs that you really want to download.

2
  • So, for example, I would put wget www.example.com -m --warc-file"example.com" --reject-regex="events", right? – Coloradohusky Oct 14 '18 at 19:06
  • Pretty much, yes – darnir Oct 15 '18 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.