From 1794e73b96119bd82c87cf108d803e6e67ebd03f Mon Sep 17 00:00:00 2001 From: Paulius Krutkis Date: Wed, 25 Nov 2026 14:20:26 +0200 Subject: [PATCH] feat!: remove Perplexity target --- README.md | 3 +-- examples/web_scraping_api/perplexity.py | 29 ------------------------- src/decodo/targets.py | 1 - 3 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 examples/web_scraping_api/perplexity.py diff --git a/README.md b/README.md index 222d770..fef3d10 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Build scraping workflows for search engines, eCommerce platforms, social media, # What is Decodo Python SDK? -Decodo Python SDK is the official Python SDK for the Decodo Web Scraping API. It provides a typed interface for interacting with Decodo targets like Google, Amazon, TikTok, YouTube, ChatGPT, Perplexity, and more. +Decodo Python SDK is the official Python SDK for the Decodo Web Scraping API. It provides a typed interface for interacting with Decodo targets like Google, Amazon, TikTok, YouTube, ChatGPT, and more. Instead of manually constructing HTTP requests and validating payloads, you can work with fully typed methods and target-specific parameters directly in your editor. @@ -609,7 +609,6 @@ Each target accepts one primary input parameter (`url`, `query`, `product_id`, o | Target | Parameter class | Description | Example input | | --------------------- | -------------------- | -------------------------------- | --------------------------------------------- | | `Target.Chatgpt` | `ChatgptParams` | ChatGPT response for a prompt | `prompt="What are the top three dog breeds?"` | -| `Target.Perplexity` | `PerplexityParams` | Perplexity response for a prompt | `prompt="What causes seasonal allergies?"` | | `Target.Gemini` | `GeminiParams` | Gemini response for a prompt | `prompt="What are the top three dog breeds?"` | | `Target.GoogleAiMode` | `GoogleAiModeParams` | Google AI Mode response | `query="What are the top three dog breeds?"` | diff --git a/examples/web_scraping_api/perplexity.py b/examples/web_scraping_api/perplexity.py deleted file mode 100644 index 5a88753..0000000 --- a/examples/web_scraping_api/perplexity.py +++ /dev/null @@ -1,29 +0,0 @@ -import json -import os - -from decodo import ( - DecodoClient, - DecodoConfig, - PerplexityParams, - Target, - WebScrapingApiConfig, -) - -api_key = os.environ["DECODO_API_KEY"] - -client = DecodoClient( - DecodoConfig( - web_scraping_api=WebScrapingApiConfig(api_key=api_key), - ) -) - -result = client.web_scraping_api.scrape( - PerplexityParams( - target=Target.Perplexity, - prompt='What are the main causes of seasonal allergies?', - parse=True, - geo='United States', - ) -) - -print(json.dumps(result, indent=2)) diff --git a/src/decodo/targets.py b/src/decodo/targets.py index cfab44d..02142fa 100644 --- a/src/decodo/targets.py +++ b/src/decodo/targets.py @@ -28,7 +28,6 @@ class Target(StrEnum): Target = "target" Universal = "universal" Chatgpt = "chatgpt" - Perplexity = "perplexity" Gemini = "gemini" Bbb = "bbb" Autotrader = "autotrader"