Skip to content

Instantly share code, notes, and snippets.

View GonzaCoding's full-sized avatar
Coding...

GonzaCoding

Coding...
View GitHub Profile
const customTheme = {
fonts: {
body: "system-ui, sans-serif",
heading: "Georgia, serif",
mono: "Menlo, monospace",
},
colors: {
transparent: "transparent",
black: "#000",
white: "#ffffff",
<Tabs>
<TabList>
<Tab>Tab1</Tab>
<Tab>Tab2</Tab>
<Tab>Tab3</Tab>
<Tab isDisabled>Tab4 disabled</Tab>
</TabList>
<TabPanels>
<TabPanel>
<p>one!</p>
const cheerio = require('cheerio');
const request = require('request');
module.exports = {
getTeams: function (req,res,next) {
request('https://www.promiedos.com.ar/historiales', (err,resr,body)=>{
if(!err && resr.statusCode == 200){
let $ = cheerio.load(body);
let teams = [];
@GonzaCoding
GonzaCoding / index.js
Last active July 6, 2020 10:47
Index.js del proyecto Futscrap-api
const app = require('express')();
var historyController = require('../controllers/historyController');
app.get('/api', historyController.getTeams);
app.get('/api/:team', historyController.getHistoryByTeam);
module.exports = app;