Observed since 20 Oct, 20:06 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
4chan-full
www.4chan.org non-official read only api
4CHAN-FULL 🎉
www.4chan.org non-official read only api.
npm install 4chan-full
Custom Request Handler (new FourChanFull(yourHandler));
Get Thread (.thread(boardCode, threadId))
Watching Thread for Updates (.threadWatcher(boardCode, threadId, [options]));
Get Board (.board(boardCode, page))
Get Archive (.archive(boardCode))
Get Popular Threads (.popular(safetyType))
Get Stats (.stats())
Board List (.boards)
That small script lists all files of the thread..
const { fchf } = require("4chan-full");
(async () => {
const thread = await fchf.thread("wg", "7694540");
// thread.file -> Thread owner (OP) file.
// thread.replies[?].file -> reply file.
const files = [thread.file, ...thread.replies.map((i) => i?.file)].filter(
(i) => i != null
);
console.log(files);
})();
That small script watches the thread for new replies..
const { fchf } = require("4chan-full");
(async () => {
let watcher = fchf.threadWatcher("vg", "337012489");
// Events: updated, nowUpdated, checked, error, #start, #stop
watcher.on("updated", (oldThread, newThread) => {
console.log({ oldThread, newThread });
});
watcher.on("notUpdated", () => {
console.log("there is no new replies..");
});
watcher.on("checked", (oldThread, newThread) => {
console.log("checked new checkInterval:", watcher.checkInterval);
});
watcher.start();
})();
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
gotEnvironment{
"local_name": "got",
"alias": false,
"peer_metadata": null
} | ^11.4.0 | runtime |
jsdomEnvironment{
"local_name": "jsdom",
"alias": false,
"peer_metadata": null
} | ^16.2.2 | runtime |
Source distribution
{
"integrity": "sha512-BG2TD54L/M8MFE18Vu53u8DYl14dUqvnyCWHKdy2IdQwWTQxk6hQwhH7Lui/NM9wWiMgDIhafD2C1tJekcKkRw==",
"shasum": "e81e9aa15ba4c47668f00798cbf33fb0858816f3",
"tarball": "https://registry.npmjs.org/4chan-full/-/4chan-full-1.0.73.tgz",
"fileCount": 11,
"unpackedSize": 19093,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf29QhCRA9TVsSAnZWagAAyREP/jNUoFtJT93nYtkFyp2n\nZ0wR9+XuwGk4FTJKHd7/6ptiGtnVd09C3RbtjZNHQTnA3Qks94I372DGiRPY\nu97aahue0SdaxpZh2TYMw7DoZXg3XrBv7Pkz/RgxIiDWrpVY/co8dLvdbLtF\nVJCVcRj8vXmcAnRhmf2q00hiX/Km2O8E2XXuQQLzZ3TZwA2HeKJlhwyAk9Ga\nSYUt5WQoKGrw7srPgnLvkILgE4WzHWc/iuSVIp/aKZ6TQlvUOwXnHPQDnOk0\n1K8dCsqeAKxckdzmcweiJn/tLqmr7Xx02wPcFn3t+2aRytnthp5Jxm+yo0Ky\nMs7oPW7zaYNKGazOZtA7d0oTdvKknEQJZdUUrDsLuBep9o8Ym6aB9Tz4DzVz\nGHED1e5Cyf62Xr9JK/GpzwMaVXXA4XWAkZ0VQd3yp9TA++wlMs+r5BwkY96s\neFsW/Nej9YmIbx7GFtCNY7+rz2X/mNimt2k11Ll/px9F1kyueQropmgcEaYO\nWn6mcH2/o8qTy7an0rN0IHatFpE031iZhVu5cuQCoxT1/puiCxmvcwh1zC64\nfvinHnIU27dTSBqheVoa9wthIf6ev7CARrTsY1QdAsI2nkNxmodAk3S36e7C\nwUcexlpxxqmKLT3g8WH5Q2RqN804umRNZmPZQHIZh4QhoJANwWujK0GxqccA\n4Pg3\r\n=ouoH\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQCB9qa0OtwqWE64pJp1DqKaq96lomLLcQx9D8354th5TQIhAKV/y+/XoSqKNSl8HwupA3nx+fQp7ou5UkVspIPSiXz4"
}
]
}Observed since 20 Oct, 20:06 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bcd53eedbc2493f5a245cd7dabb9b679944b5268b08daaf8ffdf397eea0bee2d