Awesome tutorial, thanks so much for taking the time to put this together. I'm still not fully understanding why you're slicing the results tho...
@demian55115 жыл бұрын
Lets say you want 30 results. If you have 9 results per page, and click on load more it three times, you will end up with 4 * 9 = 36. this is more then you need, so you slice them to 30...
@agentfourteen85743 жыл бұрын
thank you
@simplyfabian3 жыл бұрын
Totally my pleasure to help 🙏!
@noclickbaitgameplay98534 жыл бұрын
What/Where is the 'nr' variable that you are passing in getResults?
@markrhysburke2 жыл бұрын
I believe the 'nr' variable is set in index.js. "let results = await reddit.getResults(50);". 50 is the 'nr'. (50) for 50 results.