Closed SKreutz closed 2 years ago
@SKreutz you can either use .then
or wrap it around an annonymous async function:
// use .then syntax
OpenseaScraper.rankings(nbrOfPages, options).then(ranking => {
console.dir(ranking)
});
// wrap around self evoking annonymous async function
(async () => {
const ranking = OpenseaScraper.rankings(nbrOfPages, options);
console.dir(ranking)
})();
Hey,
if I try to use any function it returns "Promise pending".
I also removed the "await" from the functions because I get this error if i keep it:
I would appreciate your help :)
Code used: