Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit cd4d35c

Browse files
committed
[scrapper]: added new posts as well;
new -> hot -> top -> best best is user specific that's where QPS trigger may happen quite easily
1 parent 19f3348 commit cd4d35c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scrapper/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ const BASE_URL = "https://www.reddit.com/r/LocalLLaMA";
44
const TOP_URL = `${BASE_URL}/top.json?t=all&limit=100`;
55
const HOT_URL = `${BASE_URL}/hot.json?t=all&limit=100`;
66
const BEST_URL = `${BASE_URL}/best.json?t=all&limit=100`;
7+
const NEW_URL = `${BASE_URL}/new.json?t=all&limit=100`;
78

8-
const URLs = [TOP_URL, HOT_URL, BEST_URL];
9+
const URLs = [NEW_URL, HOT_URL, TOP_URL, BEST_URL];
910

1011
function sleep(ms) {
1112
return new Promise(resolve => setTimeout(resolve, ms));

0 commit comments

Comments
 (0)