Skip to content
forked from josefilho/CFN_API

Projetada com Puppeteer essa aplicação pega os dados de um nutricionista no CFN (Conselho Federal de Nutrição) e retorna eles como JSON.

Notifications You must be signed in to change notification settings

vitorzg/CFN_API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFN API

CFN API is a API to scrapy data of CFN (Consulta Federal de Nutricionistas) and return a response as JSON.

Usage

const axios = require('axios');

//That's it the subscription number
const sub = 0000;

const response = await axios.get(`https://consult-cfn.herokuapp.com/findbysubscription/${sub}`);

const { nutricionist } = response.data;

Response

The variable nutricionist has this data

{
  "name": string,
  "subscription": number,
  "crn": string,
  "situation": string,
  "subscriptionType": string,
  "lastUpdate": string 
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

Projetada com Puppeteer essa aplicação pega os dados de um nutricionista no CFN (Conselho Federal de Nutrição) e retorna eles como JSON.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%