
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
google-serp
Advanced tools
Scrape Google search results using Phobetor and Nightmare.js
// yarn add google-serp
const googleSerp = require("google-serp")
const serpResults = googleSerp({
query:"Led Zeppelin"
}).then(console.log)
Output:
{
type:"result",
payload:[
{
url:"https://ledzeppelin.com",
title: "Homepage of one rock and blues legend",
description:"Led Zeppelin is not a misic you will easily forget",
position: 1
},
...
]
}
type SerpResult = {
url: String,
title: String,
description: String,
position: Number,
}
type Result = {
payload:Array<SerpResult> | Error,
type: "result" | "error"
}
googleSerp({
query: String,
showHundredFlag?: Boolean,
show?: Boolean,
}): Promise<Result>
If there is an error during scraping, the library will return Object with type equal to "error" and the error as a payload.
If process is successful, the library will return Object with type equal to "result" and array of results as payload
.
Google search query
If set to
true, it will request 100 search result instead of 10
Default value -
false
If set to
true, it will show the browser
Default value -
false
Electron compatible environment, i.e. either system with graphic interface or you need to use xvfb. In the latter case
you need to do something like that https://gist.github.com/omarusman/1af968d9b96fc5b0cd39599db3f2b9bd
FAQs
Scrape Google search results with headless browser
The npm package google-serp receives a total of 0 weekly downloads. As such, google-serp popularity was classified as not popular.
We found that google-serp 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.