Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我未能尝试从 Opensea 中抓取一组多边形 NFT。有人可以提供一个打印控制台中返回的 html 的示例吗?我尝试了下面的代码:
const https = require("https"); https.get("https://opensea.io/collection/orathai", response => { console.log(response) });
const axios = require('axios').default; axios.get('https://api.opensea.io/api/v1/collection/orathai/?format=json') .then(resp => { console.log(resp.data); }) .catch(err => { // Handle Error Here console.error(err); });
不要忘记:npm i axios
参考:
opensea api 文档
爱讯