
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
loopback-connector-screenscrape
Advanced tools
A Loopback connector that will screenscrape a website in to a LB model.
NOTE: This is experimental!
This is a quick sample connector for Loopback using https://github.com/lapwinglabs/x-ray to screen scrape a website and return the data through a LB model.
An example app is provided here: https://github.ibm.com/apiconnect-solution-architecture/example-screenscrape-app
This connector requires two properties:
website: The URL of the page you want to scrape.
domTarget: The root DOM node from which to start the screen scrape.
Example:
{
"dribbble": {
"connector": "screenscrape",
"name": "dribbble",
"remotingEnabled": true,
"website": "https://dribbble.com/search?q=mobile",
"domScope": "li.group"
}
}
For the model field definitions, you must tell the connector what DOM target this field will be bound to. e.g.
"properties": {
"title": {
"type": "string",
"domTarget": ".dribbble-img strong"
},
"image": {
"type": "string",
"domTarget": ".dribbble-img [data-src]@data-src"
},
"comment": {
"type": "string",
"domTarget": ".dribbble-img .comment"
},
"date": {
"type": "type",
"domTarget": ".dribbble-img .timestamp"
},
"commentCount": {
"type": "string",
"domTarget": ".dribbble-shot .tools .cmnt span"
},
"viewsCount": {
"type": "string",
"domTarget": ".dribbble-shot .tools .views span"
},
"likes": {
"type": "string",
"domTarget": ".dribbble-shot .tools .fav a"
}
},
If you want to try it out quickly, as a stand-alone test:
npm installnode example/model.jshttps://dribbble.com/search?q=mobile in JSON format. Checkout example/model.js for a
quick example.To run the actual test(s): npm test
FAQs
A Loopback connector that will screenscrape a website in to a LB model.
We found that loopback-connector-screenscrape 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.