Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "oxylabs-create-proxy-session",
name: "Create Proxy Session",
description: "Establish a proxy session using the Residential Proxy endpoint. [See the documentation](https://developers.oxylabs.io/proxies/residential-proxies/session-control#establishing-session)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
oxylabs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "oxylabs-create-schedule",
name: "Create Schedule",
description: "Create a schedule for a scraping job. [See the documentation](https://developers.oxylabs.io/scraping-solutions/web-scraper-api/features/scheduler#create-a-new-schedule)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
oxylabs,
Expand Down
16 changes: 15 additions & 1 deletion components/oxylabs/actions/scrape-url/scrape-url.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "oxylabs-scrape-url",
name: "Scrape URL",
description: "Scrape a URL. [See the documentation](https://developers.oxylabs.io/scraping-solutions/web-scraper-api)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
oxylabs,
Expand All @@ -27,6 +27,18 @@ export default {
"geoLocation",
],
},
parse: {
propDefinition: [
oxylabs,
"parse",
],
},
render: {
propDefinition: [
oxylabs,
"render",
],
},
},
async run({ $ }) {
const response = await this.oxylabs.scrape({
Expand All @@ -35,6 +47,8 @@ export default {
source: this.source,
url: this.url,
geo_location: this.geoLocation,
parse: this.parse,
render: this.render,
},
});
$.export("$summary", `Successfully scraped URL: ${this.url}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "oxylabs-scrape-with-query",
name: "Scrape with Query",
description: "Extract data using a search query. [See the documentation](https://developers.oxylabs.io/scraping-solutions/web-scraper-api)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
oxylabs,
Expand All @@ -26,6 +26,18 @@ export default {
"geoLocation",
],
},
parse: {
propDefinition: [
oxylabs,
"parse",
],
},
render: {
propDefinition: [
oxylabs,
"render",
],
},
},
async run({ $ }) {
const response = await this.oxylabs.scrape({
Expand All @@ -34,6 +46,8 @@ export default {
source: this.source,
query: this.query,
geo_location: this.geoLocation,
parse: this.parse,
render: this.render,
},
});
$.export("$summary", `Successfully scraped using query: ${this.query}`);
Expand Down
3 changes: 0 additions & 3 deletions components/oxylabs/common/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ const QUERY_SOURCES = [
"amazon_pricing",
"amazon_sellers",
"amazon_bestsellers",
"amazon_reviews",
"amazon_questions",
"google_search",
"google_ads",
"google_images",
"google_lens",
"google_maps",
"google_travel_hotels",
Expand Down
15 changes: 15 additions & 0 deletions components/oxylabs/oxylabs.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ export default {
description: "The geo location to scrape from. [See the guide](https://developers.oxylabs.io/scraping-solutions/web-scraper-api/features/localization/e-commerce-localization) for using this property.",
optional: true,
},
parse: {
type: "boolean",
label: "Parse",
description: "Set to `true` to receive structured data",
optional: true,
},
render: {
type: "string",
label: "Render",
description: "Set to `html` to get the raw output of the rendered page",
options: [
"html",
],
optional: true,
},
},
methods: {
_getBaseUrl() {
Expand Down
2 changes: 1 addition & 1 deletion components/oxylabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/oxylabs",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Oxylabs Components",
"main": "oxylabs.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "oxylabs-new-scheduled-run-completed",
name: "New Scheduled Run Completed",
description: "Emit new event when a new scheduled run is completed. [See the documentation](https://developers.oxylabs.io/scraping-solutions/web-scraper-api/features/scheduler#get-runs-information)",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
12 changes: 4 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading