Current collected state Current
Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2x10-webscraper
A simple webscraping API for images and videos for image board sites
A simple webscraping API for images and videos board sites
const { ScraperContext, ScrapeFast } = require("./WebScraper.js")
const context = new ScraperContext
({
site: "https://example.org",
query: "index?q=",
tags: ["aesthetic", "skyscraper"],
amount: 5,
posts:
{
container: ".thumbail-container",
tag: ["a"],
attribute: "href",
},
post:
{
container: ".content",
tag: ["img", "source"],
attribute: "src",
},
pages:
{
container: ".paginator",
tag: ["a"],
attribute: "href",
query: {
name: "page",
min: 0,
max: 100,
},
},
});
async function Run()
{
const response = await ScrapeFast(context);
console.log(response);
}
Run();
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
cheerioEnvironment{
"local_name": "cheerio",
"alias": false,
"peer_metadata": null
} | ^1.1.2 | runtime |
node-fetchEnvironment{
"local_name": "node-fetch",
"alias": false,
"peer_metadata": null
} | ^3.3.2 | runtime |
Source distribution
{
"shasum": "7601f57b79a243e7aa880f1aa2ae7c36fb85b5ed",
"tarball": "https://registry.npmjs.org/2x10-webscraper/-/2x10-webscraper-1.0.9.tgz",
"fileCount": 7,
"integrity": "sha512-TTG3aCiiBHkRz0OR2YvO8n+BKDjy2G6MOKyIZ7tjerKpKKXN/WDP6U0pt4qWwnS8L99aP3fbGmeOrxbJ/t0fpQ==",
"signatures": [
{
"sig": "MEUCIQCHkBWFmq/fh3wJpEoQ4wHZMwTYojjO8Uo/w2PxmP9ZZQIgSjAB5/nHI3WOvC0ogNYiDYOsO//IFBMme9Xxxt1gU2Q=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 7645
}Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:2b35a846587ce08efc28224d66dfa7d7f85f0e18aef73b0b9657fcedfeefec08