![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
4chan-list-webm
Advanced tools
Given a board and thread number, returns a Promise
with an array of objects containing the filename, video and thumbnail URLs of all webm files in the thread.
Here's a little demonstration of 4chan-list-webm
, http://4webm.org, in action (plz star).
4chan-list-webm
now returns a Promise
. See "Usage" for an example.
$ yarn add 4chan-list-webm
# OR
$ npm install --save 4chan-list-webm
const listWebms = require('4chan-list-webm')
// Consider the following URL: http://boards.4chan.org/wsg/thread/2045456
// The board is 'wsg' and the thread number is 2045456
// Note: This thread will likely 404 by the time you see this
listWebms('wsg', 2045456).then(function (webms) {
console.log(webms)
})
The data looks like this:
[{ "filename": "1478018951860",
"url": "http://i.4cdn.org/wsg/1514757619690.webm",
"thumbnail": "http://i.4cdn.org/wsg/1514757619690s.jpg" },
{ "filename": "1505294337138",
"url": "http://i.4cdn.org/wsg/1514834417503.webm",
"thumbnail": "http://i.4cdn.org/wsg/1514834417503s.jpg" }]
listWebm(board, threadNo, options)
string
): The board the thread is in (if you have good taste, then it'll likely /wsg/
)number
): The thread numberobject
): An options object, see below for more informationPromise
Option | Description | Type |
---|---|---|
https | Use https instead of http | Boolean |
Because CORS is only supported with an origin of http(s)://boards.4chan.org
,
this module does not work in the browser; it only works with Node.js.
As stated in the 4chan API, you must ensure that you do not make more than one request per second. It is your responsiblity to ensure that the request limit is respected. I recommend using limiter or bottleneck.
You will get an 403 Forbidden error
if you try to load the thumbnails via inline linking (eg. changing the src
attribute of an <img>
via JavaScript, or hard-coding it). You can still download these images via a proxy server and serve them there.
¯\_(ツ)_/¯
The creator of 4chan-list-webm
is not associated with 4chan.org in any way.
FAQs
Generate a list of webms posted in a 4chan thread
The npm package 4chan-list-webm receives a total of 53 weekly downloads. As such, 4chan-list-webm popularity was classified as not popular.
We found that 4chan-list-webm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.