Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakashii13/traspasos_daily
https://github.com/kakashii13/traspasos_daily
nodejs puppeteer scraper typescript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kakashii13/traspasos_daily
- Owner: kakashii13
- Created: 2024-08-26T17:14:41.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-17T01:35:50.000Z (2 months ago)
- Last Synced: 2024-09-30T07:41:25.720Z (about 2 months ago)
- Topics: nodejs, puppeteer, scraper, typescript
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TRASPASOS DAILY
## Description
This project is a scraper of the page Traspasos of SSS. It downloads the files of Traspasos daily.
## Table of contents
- [Installation](#installation)
## Installation
1. Clone the repository:
```
git clone https://github.com/kakashii13/traspasos_daily.git
```2. Navigate to the project directory
```
cd traspasos_daily
```3. Install dependencies
```
npm install
```4. Create tsconfig.json
```
tsc --init
```5. Create and setup .env file
```
There are some fixed variables
URL = "https://www.sssalud.gob.ar/login.php?menuOpciones=Menu+Principal+de+Opciones"
OS_USER = ""
OS_PASSWORD = ""
PATH_DOWNLOADS = ""
FILE_LOGGER = ""
PATH_RG = ""
PATH_MONO = ""
```6. Start the application
```
npm run start
```## Usage
- Start the application with the propers .env variables and receive the request data
- The default date will always be the day before the current day. If you want a custom date, you can pass as parameter in scraper function calle.g
```
await scraper(0, pathToDownload, {day: '01', month: '05', year: '2024'})
```