25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
269 B

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