Skip to content

Commit 41c3dce

Browse files
authored
[FIX] SerpApi - issue with no_cache and q props (#15673)
1 parent 70a8363 commit 41c3dce

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

components/serpapi/actions/scrape-search/scrape-search.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "serpapi-scrape-search",
55
name: "Scrape Search",
66
description: "Scrape the results from a search engine via SerpApi service. [See the documentation](https://serpapi.com/search-api)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
app,
@@ -40,9 +40,11 @@ export default {
4040
engine: this.engine,
4141
},
4242
data: {
43-
q: this.q.join(","),
43+
q: this.q,
4444
device: this.device,
45-
no_cache: this.noCache,
45+
no_cache: Boolean(this.noCache) === true
46+
? "true"
47+
: "false",
4648
},
4749
});
4850

components/serpapi/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/serpapi",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Pipedream SerpApi Components",
55
"main": "serpapi.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^3.0.0"
16+
"@pipedream/platform": "^3.0.3"
1717
}
1818
}

components/serpapi/serpapi.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export default {
1212
options: constants.ENGINES,
1313
},
1414
q: {
15-
type: "string[]",
15+
type: "string",
1616
label: "Query",
17-
description: "The query or queries you want to search. When passing multiple queries you need to use a comma `,` to separate them",
17+
description: "The query you want to search. You can use anything that you would use in a regular Google search. e.g. `inurl:`, `site:`, `intitle:`. SerpApi also supports advanced search query parameters such as `as_dt` and `as_eq`. See the [full list](https://serpapi.com/advanced-google-query-parameters) of supported advanced search query parameters.",
1818
},
1919
device: {
2020
type: "string",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)