Coder Social home page Coder Social logo

cue-backup's Introduction

Cue Backup ๐Ÿธ

cue-backup helps you download a safe offline copy of your favorite insider drop aggregator website. It has all the functionality of the original site, but works even when you are offline (or if the original disappears).

Installation

  1. Download and install the LTS version of Node.js for your operating system.

  2. Download and unzip this repository onto your computer. Use the green "Code" button above. (Or use git clone if you are familiar.)

  3. Open up a command prompt or terminal in the cue-backup folder you just unzipped. (Tutorial here if you don't know how.)

  4. Type npm install into the command prompt to install the required dependencies.

Usage

  1. Type node backup into the command prompt to download the site. This may take a while depending on your internet connection. If you see any errors, run the command again until it completes successfully. (You can also specify an alternate URL node backup https://anothersite.pub.)

  2. Whenever new posts appear you can run the backup command again and it will incrementally download anything new.

  3. Once your backup is complete you can type npm start into the command prompt to launch the local version of the site. This should automatically open the site in a web browser for you.

  4. Press CTRL-C inside the terminal window to stop the web server.

Under the Hood

cue-backup uses a headless (no screen display) version of the Chrome Browser powered by Puppeteer to load the website, download all the assets and produce a version which works entirely offline. Requests are throttled to avoid straining the server. You can adjust the throttle settings at the top of backup.js.

It should work on Mac, Linux and Windows.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.