Skip to content

NodeJS Typescript MongoDB Vue.js Atlas PEC Email Scraper

Notifications You must be signed in to change notification settings

fabiofanta/pec-scraping

Repository files navigation

Pec-scraping

NodeJS Typescript MongoDB Vue.js Atlas PEC Italian Email Scraper https://pec-scraping.herokuapp.com/

Installing

Clone repository:

$ git clone https://github.com/fabiofanta/pec-scraping.git

Install packages and dependencies:

$ npm install

Copy, rename (.env.js) and fill (2captcha key) .env-example.js:

$ cp .env-example.js .env.js

Copy, rename (dbInput.js) and fill (MongoDB Atlas NodeJS credentials) dbInput-example.js:

$ cp dbInput-example.js dbInput.js

Run

Run app with Heroku: --> Install Heroku --> https://devcenter.heroku.com/articles/heroku-cli;

Run locally with heroku local:

$ heroku local web

-Browser localhost:5000

Run app backend with NodeJS:

First put manually VAT Code instead of 'req.body' inside public/js/app.js

// express server iterations
app.use(express.static('public/client'));
app.use(bodyParser.text({ extended: true }));
app.post('/', function (req, res) {
    searchVat(req.body, res);
});

--> then -> From project Root:

$ node public/js/app.js

Warning

2captcha API takes up to 100.000ms to response, Heroku puts a 30.000ms timeout on HTTP calls. It can cause captcha not resolved issue.

About

NodeJS Typescript MongoDB Vue.js Atlas PEC Email Scraper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published