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-ICJWdmiR1Ym/Q8p0E977GNRqprbaLaNVdyoNG/W6w0ynTp5Mhtja86C4VXoTKIVRky+dSQBFj7QU2zF+/9kjGw==",
"shasum": "935cb180bf1c5960bbf9d64f9fcd1eeadc91c4cd",
"tarball": "https://registry.npmjs.org/4chan-full/-/4chan-full-1.1.0.tgz",
"fileCount": 28,
"unpackedSize": 22423,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6jSWCRA9TVsSAnZWagAAHdoP/0wHdzxlnZ0i9uuTERRa\nrcVZpgcnYkaHijWMEk2qvolP+o0stsonLID7vo/gRPIemlcgVaHvuifS0TC9\nI4pC5EIUu7eD4U82o1MU6qGYfxS8x2umR0w33hOD6tWWK4nlpwcm86wPl8lu\neqN4T3P8tcpNSNjU411rcydPz172XXjdNJvCv9cMfhfyL+Yad/PU8k9M/fMy\nBbtzfHehqaf8qdh0BkABJMT7tvpAQm6iM4BVmoR/HC7wfMhXRW556MKKrDDo\nYMusFKf+dndDFhaRbECWm4s33jTKx7f0hywR2IqfDNZSAtcCIqgfL9xx1PeL\nWpbofxYDdIIpVHLy5UPGb9D8QVhzY5NSF02xzwUavzJsjTkyJ1WZAhlpKby4\nuBbfYlziZSfygzC1Y8RR0vCbJDUpFDICNqQ2SI/vnLeHS/H9Oz+edgFk6U+1\nN7hRD/d7g1/YCPxqWiDTyjsCy8F/x50XY0/2EkXj/MR8CnCX59qqBFlZGpDA\n77DJk3ovQOZxH074uPf6FPoDPTNyvTOIdnhB9I+84Mn3WOBBu+LiboCHgrTL\n34Y+fpdlFbLP+0p59ryglSNUmIty8qyLM5u+JsnfB//Kuw71BzekSTqApQVt\n4CNveKHfG5HoxSFJLy/1+Q73N75xys51GKIuEbEVMPcdab/IHiWCrritgkil\n5+fH\r\n=oD/w\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDjW0fCpyRgpMoMdPcL7EZqVR5bfyfYiniTgKNEnM5wbwIgAeCtfooJq4DlkFcChm8EEe89y7MrVw4lZrC1wv7ZR/c="
}
]
}Observed since 20 Oct, 20:06 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:6115cbeb6eec7f7a16cf6bfaf406de1357bed20c16a85579f6ae7ef49cd87585