- import * as cheerio from 'cheerio'
-
- export default defineEventHandler(async (event) => {
- const data = await $fetch('https://files.erudi.fr/screenshit/')
- const $ = cheerio.load(data)
- let links = []
- return $('table a').map((i, el) => $(el).attr('href')).get()
- })
|