radgrad/radgrad2

View on GitHub
scripts/ts/internship-import/import-intern-aloha.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { program } from 'commander';
import { InternAlohaUrls } from './InternAlohaUrls';

const fetch = require('node-fetch');

async function importInternAloha(url) {
  const response = await fetch(url);
  const internships = await response.json();
  console.log(internships.length);
}

program
  .action(() => importInternAloha(InternAlohaUrls.ziprecruiter));

program.parse(process.argv);