Git Product home page Git Product logo

anp-price-collector's Introduction

  • Head of Emerging Technologies at Inter&Co
  • Blockchain/CBDC/DREX & AI
  • 25+ years of experience with IT
  • Passionate Programmer with a Constant Drive to Code

Hello there 👋

  • 🔭 I'm currently honing my skills at Inter&Co.
  • 🌱 I'm diving deep into the world of CBDC, Blockchain, and Solidity.
  • Trying to understand Quantum Computing.
  • 👯 I'm open to collaborations on blockchain-related projects.
  • 📫 Let's connect! Visit me at: https://brunogrossi.com
  • ⚡ Did you know? I'm also passionate about filmmaking.
  • 💬 Curious about software development and architecture? Don't hesitate to ask!
  • 🤔 I’m looking for help with Zero Knowledge Proof.
  • 😄 Pronouns: he/him

anp-price-collector's People

Contributors

begrossi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anp-price-collector's Issues

server.js quebra durante execução do collector

Subi o mongo e depois subi o server:

$ cd server
$ node server.js

depois, executei o Collector:

$ cd ../collector
$ node index.js

Então, a única saída é:

info: Acre, 2 cidades, 74 postos: Cruzeiro do Sul, Rio Branco
400 400

E depois o server quebra:

(node:91388) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Started the api on port 8080
Mongoose: weeks.ensureIndex({ _id: 1 }, { unique: true, background: true })
Mongoose: states.ensureIndex({ _id: 1 }, { unique: true, background: true })
Mongoose: stations.ensureIndex({ name: 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ week: 1 }, { background: true })
info: mongo uri: mongodb://localhost:27017/anp-price-collector
Mongoose: stations.ensureIndex({ flag: 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ state: 1 }, { background: true })
Mongoose: weeks.ensureIndex({ from: 1 }, { background: true })
Mongoose: states.ensureIndex({ name: 1 }, { background: true })
Mongoose: stations.ensureIndex({ state: 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'cities._codCity': 1 }, { background: true })
Mongoose: weeks.ensureIndex({ to: 1 }, { background: true })
Mongoose: states.ensureIndex({ 'cities._codCity': 1 }, { unique: true, background: true })
Mongoose: stations.ensureIndex({ city: 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'cities.name': 1 }, { background: true })
Mongoose: weeks.ensureIndex({ from: 1, to: 1 }, { unique: true, background: true })
Mongoose: states.ensureIndex({ 'cities.name': 1 }, { background: true })
Mongoose: stations.ensureIndex({ name: 1, address: 1, area: 1, flag: 1 }, { unique: true, background: true })
Mongoose: anpdatas.ensureIndex({ 'statistics._codType': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'statistics.type': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'stations.name': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'stations.flag': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'prices._codType': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ 'prices.type': 1 }, { background: true })
Mongoose: anpdatas.ensureIndex({ week: 1, state: 1 }, { unique: true, background: true })
Debug: validation, error, payload 
    Error: child "state" fails because [child "cities" fails because ["cities" at position 0 fails because [child "stations" fails because ["stations" at position 10 fails because [child "prices" fails because ["prices" at position 0 fails because [child "date" fails because ["date" must be a number of milliseconds or valid date string]]]]]]]]
    at postValidate (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/validation.js:72:26)
    at internals.Object.internals.Any._validateWithOptions (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/joi/lib/any.js:653:16)
    at module.exports.internals.Any.root.validate (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/joi/lib/index.js:100:23)
    at Object.internals.input (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/validation.js:129:20)
    at exports.payload (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/validation.js:27:22)
    at /Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/request.js:389:16
    at iterate (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/items/lib/index.js:35:13)
    at done (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/items/lib/index.js:27:25)
    at internals.Auth.payload (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/auth.js:357:16)
    at /Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/request.js:389:16
    at iterate (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/items/lib/index.js:35:13)
    at done (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/items/lib/index.js:27:25)
    at onParsed (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/route.js:438:20)
    at /Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/lib/route.js:459:20
    at next (/Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/subtext/lib/index.js:45:16)
    at /Users/rodrigorecio/Downloads/anp-price-collector-master/server/node_modules/hapi/node_modules/subtext/lib/index.js:168:20

Captcha

Bruno, boa tarde, parabéns pelo projeto. Eu ainda não tenho experiência em Nodejs, mas pelo que vi no código, ele não trata o captcha. Acredito que na época em que você construiu, não havia o captcha que existe hoje no site. Então o código atual não está funcionando?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.