Skip to content

joaopegoraro/meu-mengao-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meu Mengao Crawler

Typescript scraper using Puppeteer. Used by Meu Mengão.

What does it scrape

How to run

Create a .env file in the project's root with your database information:

DB_HOST=localhost
DB_USER=youruser
DB_PWD=yourpassword
DB_PORT=3306
DB_NAME=meu_mengao

Then install the dependencies, compile the .ts files and run the scraper:

$ npm install
$ npx tsc
$ node scraper.js

Is this good code?

God no. But I really don't wanna refactor this, web scraping is painful, so I rather only experience its pain when some of the scraped sites break and I'm forced to update. Maybe I refactor in the future, but no promises...

Releases

No releases published

Packages

No packages published