Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
goose-parser
Advanced tools
npm install
npm start
The purpose of this rule - retrieving simple textual node value
Fields:
The purpose of this rule - retrieving collection of nodes
Fields:
The purpose of this rule - retrieving collection of collection
Fields:
[Sync] This is a sync way of parsing simple page:
var parser = new PhantomParser();
parser.parse(
'http://some-page-url.com/page.html',
{
scope: 'div.get-scope-test-5-passed',
collection: [[
{name: 'column1', scope: 'div.get-scope-test-5-passed-column1'},
{
name: 'sub-column',
scope: 'div:last-child',
extract: true,
collection: [
{name: 'column2', scope: 'div.get-scope-test-5-passed-column2'},
{name: 'column3', scope: 'div.get-scope-test-5-passed-column3'},
{name: 'column4', scope: 'div.get-scope-test-5-passed-column4'}
]
}
]]
}
).then(function(parsed) {
});
[Async] That one will parse a page with infinity scroll pagination:
var parser = new PhantomParser();
parser.parse(
'http://some-page-url.com/page.html',
{
scope: 'div.get-scope-test-5-passed',
collection: [[
{name: 'column1', scope: 'div.get-scope-test-5-passed-column1'},
{
name: 'sub-column',
scope: 'div:last-child',
extract: true,
collection: [
{name: 'column2', scope: 'div.get-scope-test-5-passed-column2'},
{name: 'column3', scope: 'div.get-scope-test-5-passed-column3'},
{name: 'column4', scope: 'div.get-scope-test-5-passed-column4'}
]
}
]]
},
{
type: 'scroll',
interval: 50000
},
).then(function(parsed) {
});
[Async] That one will parse a page with ajax pagination:
var parser = new PhantomParser();
parser.parse(
'http://some-page-url.com/page.html',
{
scope: 'div.get-scope-test-5-passed',
collection: [[
{name: 'column1', scope: 'div.get-scope-test-5-passed-column1'},
{
name: 'sub-column',
scope: 'div:last-child',
extract: true,
collection: [
{name: 'column2', scope: 'div.get-scope-test-5-passed-column2'},
{name: 'column3', scope: 'div.get-scope-test-5-passed-column3'},
{name: 'column4', scope: 'div.get-scope-test-5-passed-column4'}
]
}
]]
},
{
type: 'paginate',
scope: 'div.pageable > div.pagination > div'
}
);
FAQs
Multi environment web page parser
The npm package goose-parser receives a total of 93 weekly downloads. As such, goose-parser popularity was classified as not popular.
We found that goose-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.