parser-multi-app

1.1.4 • Public • Published

parser-multi-app

This is a Node.js program that extracts data from multiple sources and stores it in a PostgreSQL database.

Installation

  1. Clone the repository:

    git clone https://github.com/grxkun/parser-multi-app.git
  2. Navigate to the project directory:

    cd parser-multi-app
  3. Install dependencies:

    npm install

Configuration

Before running the program, make sure to configure the PostgreSQL connection settings in the parser-multi-app.js file:

const pool = new Pool({
  user: 'your_username',
  host: 'localhost',
  database: 'your_database',
  password: 'your_password',
  port: 5432,
});

Replace 'your_username', 'your_database', and 'your_password' with your actual PostgreSQL credentials.

Usage

Run the program using Node.js:

node parser-multi-app.js

The program will extract data from two different sources (a website and a REST API in this example) and store it in the configured PostgreSQL database.

Features

  • Extract Data from Multiple Sources: This program demonstrates extracting data from different sources such as websites and REST APIs.
  • Store Data in PostgreSQL Database: Extracted data is stored in a PostgreSQL database using the pg module.
  • Error Handling: The program includes error handling for data extraction and database operations.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for any improvements or suggestions.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Package Sidebar

Install

npm i parser-multi-app

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

4.37 kB

Total Files

3

Last publish

Collaborators

  • grxkun