diff --git a/lib/routes/deeplearning/thebatch.ts b/lib/routes/deeplearning/thebatch.ts index 1264a03a051bcb..f7816a7e060cc1 100644 --- a/lib/routes/deeplearning/thebatch.ts +++ b/lib/routes/deeplearning/thebatch.ts @@ -1,6 +1,8 @@ import { Route } from '@/types'; import cache from '@/utils/cache'; -import got from '@/utils/got'; +import ofetch from '@/utils/ofetch'; +import * as cheerio from 'cheerio'; +import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/thebatch', @@ -27,33 +29,43 @@ export const route: Route = { }; async function handler() { - const page = await got({ - method: 'get', - url: `https://www.deeplearning.ai/the-batch/`, - }); - const nextJs = page.data.match(/