A simple Node.js app that scrapes blog posts from a list of websites and sends 5 recommendations to read every day
Here are the installation instructions to set up the Node.js web scraping app on your local machine using Github:
-
Clone the repository by running the following command in your terminal:
git clone https://github.com/yourusername/yourreponame.git
-
Navigate into the project directory:
cd yourreponame
-
Install the necessary dependencies by running the following command:
npm install
-
Create a .env file in the root directory of your application and add the following environment variables:
EMAIL=your@email.com
PASSWORD=yourpassword
-
Start the server by running the following command:
npm start
The server should now be running on http://localhost:3000
. You can sign up by making a post request to http://localhost:3000/signup
with a json object containing an email key.
The app will scrape blogs from the websites in the websites array every day, and send 5 unique recommendations to read to each user that signed up.
Note
: you will also need to have Redis server installed and running on your machine.