![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.
docparse-scraper-check-node
Advanced tools
allow node based scrapers to query the docparse api and see if they should download a bill or not
Allow node based scrapers to query the docparse database see if they should download a bill or not
npm install docparse-scraper-check-node
Call the module with your bill number, supplier code, and a cradle db connection to check if a bill should get downloaded or not
var check = require('docparse-scraper-check-node');
// get an api object containing login credentials to the docparse server
var checkData = {
supplierCode: 'HES',
billNumber: 'H1268729',
db: db // a cradle db connection
}
check(checkData, function(err, reply) {
if (err) {
console.dir(err)
return
}
console.dir(reply)
}
The reply in the check callback will be the json data parsed from the docparse api server check request. It should look like as follows:
New Bills
var reply = {
download: true,
message: 'Bill not yet download. Perform download now.',
success: true
}
Existing Bills
var reply = {
download: false,
message: 'Bill already download. Do not download.',
success: true
}
You can also pass in an array with the key billNumbers. If your billNumber appears in this array, the system can avoid a remote api call and return results quicker
var billNumbers =
var checkData = {
supplierCode: 'HES',
billNumber: 'bar',
billNumbers: ['foo', 'bar'],
db: db
}
check(checkData, function(err, reply) {
if (err) {
console.dir(err)
}
console.dir(reply)
}
FAQs
allow node based scrapers to query the docparse api and see if they should download a bill or not
The npm package docparse-scraper-check-node receives a total of 4 weekly downloads. As such, docparse-scraper-check-node popularity was classified as not popular.
We found that docparse-scraper-check-node 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.