dcts / opensea-scraper

Scrapes nft floor prices and additional information from opensea. Used for https://nftfloorprice.info
MIT License
184 stars 73 forks source link

[FEATURE REQUEST] scrape multiple pages of rankings #47

Open pm-12 opened 2 years ago

pm-12 commented 2 years ago

Is it possible to fetch rankings from more than 1 page?

dcts commented 2 years ago

Unfortunately not, that functionality was depricated as it was not stable.

dcts commented 2 years ago

If you want you can try using the old version, just install the package with version 5.0.4:

npm install opensea-scraper@5.0.4

Then you can use this script to fetch for example 3 pages:

const OpenseaScraper = require("opensea-scraper");

const options = {
  debug: false,
  logs: false,
  sort: true,
  browserInstance: undefined,
}

const nbrOfPages = 3;
(async () => {
  const ranking = await OpenseaScraper.rankings(nbrOfPages, options);
  console.log(ranking);
  console.log("Done 🥳");
})();

Hope that helps..! @pm-12 Let me know if that works for you. If its usefull I might bring it back in a next version.

pm-12 commented 2 years ago

Thanks will try it out, is there a way to reach you on telegram maybe?

dcts commented 2 years ago

reopening and adding to roadmap as this seems to be a common usecase.