Self hosted service to save web sites/pages

There are certain sites these days such as this that make it hard to save a complete webpage or MHTML.

Is there a project/service that's :

  1. Open source
  2. Self hosted
  3. Scrapes URLs given as input and saves them regardless of JS and other BS
  4. Has some sort of intelligent organizing, tagging, searching and retrieval/recall system.