Skip to content

ggrocco/recomenda_easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recomenda EASY

Infra Model

Rodando Localmente

# Clone the repository
$ git clone TODO
$ cd recomenda_easy

# Copy the sample env
$ cp sample.env .env

# Create a Python virtual environment
$ python -m venv env
$ source env/bin/activate

# Install dependecies
$ pip install -r requirements.txt

$ python run.py

Your app should now be running on localhost:3000.

Livros e comentarios Crawler

# Criação dos arquivos JSON
$ scrapy runspider tccScrapperBooks.py -o livros.json
$ scrapy runspider tccScrapperComments.py -o comments.json

# Transformação dos comentarios
$ python transformationComments.py

# Importa no banco de dados Mongo.
$ mongoimport -h HOST -d DATABASE -c books -u USER -p PASSWORD --file livros.json --jsonArray
$ mongoimport -h HOST -d DATABASE -c comments -u USER -p PASSWORD --file comments.json --jsonArray

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

ou

Deploy

Documentation

TODO