
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
eighty-app
Advanced tools
A class that people can extend to create their own custom scraper to use on 80legs.com
description: A class that people can extend to create their own custom scraper to use on 80legs.com
Usage:
var EightyApp = require("eighty-app");
var app = new EightyApp();
app.processDocument = function(html, url, headers, status, $) {
/* First we parse the HTML into a lightweight DOM equipped with jquery-like dom-traversal functions */
var $html = app.parseHtml(html, $);
var data = {};
/* dig out any data you want from within the DOM. Add that data to the data object */
/* Serialize the data object. You'll see this data object in a result file for a crawl using this 80app */
return JSON.stringify(data);
}
app.parseLinks = function(html, url, headers, status, $) {
/* First we parse the HTML into a lightweight DOM equipped with jquery-like dom-traversal functions */
var $html = app.parseHtml(html, $);
var links = [];
/* dig out any links that you want to crawl from within the DOM. Add those links to the links array */
/* whatever links you add to this array will also be crawled */
return links;
}
/* don't forget to add this in! Otherwise we won't be able to use your scraper from within our crawling engine */
module.exports = function() {
return app;
}
refer here for additional support
FAQs
A class that people can extend to create their own custom scraper to use on 80legs.com
The npm package eighty-app receives a total of 1 weekly downloads. As such, eighty-app popularity was classified as not popular.
We found that eighty-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.