philippta / flyscrape

Flyscrape is a command-line web scraping tool designed for those without advanced programming skills.
https://flyscrape.com
Mozilla Public License 2.0
1.04k stars 31 forks source link

[Question]Is there any example for requesting a json endpoint? #20

Closed leopku closed 11 months ago

leopku commented 11 months ago

I got the code running.

import http from "flyscrape/http";

export default function ({ url }) {
  const resp = http.get(url);
  const result = resp.body;
  console.log(result);
  return { result };
}