Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] scrape multiple pages of rankings #47

Open
pm-12 opened this issue Apr 2, 2022 · 4 comments
Open

[FEATURE REQUEST] scrape multiple pages of rankings #47

pm-12 opened this issue Apr 2, 2022 · 4 comments

Comments

@pm-12
Copy link

pm-12 commented Apr 2, 2022

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

@dcts
Copy link
Owner

dcts commented Apr 3, 2022

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

@dcts
Copy link
Owner

dcts commented Apr 3, 2022

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

npm install [email protected]

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
Copy link
Author

pm-12 commented Apr 3, 2022

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

@dcts dcts closed this as completed Apr 11, 2022
@dcts
Copy link
Owner

dcts commented May 30, 2022

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

@dcts dcts reopened this May 30, 2022
@dcts dcts changed the title Page 2 volume rankings [FEATURE REQUEST] scrape multiple pages of rankings Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants