It is challenging to scrape data from Opensea without having restrictions to the site since the requests go through Cloudflare. But it's possible to imitiate the requests after obtaining the header of the request by intercepting the network activity. The key point of the trick here is: sending the imitated request through the browser by using the page.evaluate function instead of sending on a node client, due to the CORS wouldn't be fulfilled and the requests would be blocked by the Cloudflare mechanism.
npm installDefine the collection name in the .env file and run the script. The process will be logged and the output will be dumped to output.json file.
npm run collect