You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/toolkits/others/apify.mdx
+5-36Lines changed: 5 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,18 @@
2
2
title: Apify
3
3
---
4
4
5
-
This guide demonstrates how to integrate and use [Apify](https://apify.com/actors) Actors within the Agno framework to enhance your AI agents with very powerful data collection capabilities.
5
+
This guide demonstrates how to integrate and use [Apify](https://apify.com/actors) Actors within the Agno framework to enhance your AI agents with web scraping, crawling, data extraction, and web automation capabilities.
6
6
7
7
## What is Apify?
8
8
9
9
[Apify](https://apify.com/) is a platform that provides:
10
-
11
-
- Data collection services for AI Agents
10
+
- Data collection services for AI Agents, specializing in extracting data from social media, search engines, online maps, e-commerce sites, travel portals, or general websites
12
11
- A marketplace of ready-to-use Actors (specialized tools) for various data tasks
13
12
- Infrastructure to run and monetize our own AI Agents
14
13
15
14
## Prerequisites
16
15
17
-
1. Sign up for an Apify account
16
+
1. Sign up for an [Apify account](https://console.apify.com/sign-up)
18
17
2. Obtain your Apify API token (can be obtained from [Apify](https://docs.apify.com/platform/integrations/api))
19
18
3. Install the required packages:
20
19
@@ -48,7 +47,7 @@ agent.print_response("What information can you find on https://docs.agno.com/int
48
47
49
48
## Available Apify Tools
50
49
51
-
You can easily integrate any Apify Actor as a tool, but we prepared some examples for you:
50
+
You can easily integrate any Apify Actor as a tool. Here are some examples:
52
51
53
52
### 1. RAG Web Browser
54
53
@@ -140,37 +139,6 @@ agent.print_response(
140
139
)
141
140
```
142
141
143
-
## Implementation Details
144
-
145
-
Below is a simplified implementation reference for the ApifyTools class. You can find the complete implementation in the source code.
146
-
147
-
```python
148
-
from agno.tools import Toolkit
149
-
from apify_client import ApifyClient
150
-
from langchain_apify import ApifyActorsTool
151
-
152
-
classApifyTools(Toolkit):
153
-
def__init__(
154
-
self,
155
-
actors: Union[str, List[str]] =None,
156
-
apify_api_token: Optional[str] =None
157
-
):
158
-
# Initialize toolkit with Apify API token
159
-
super().__init__(name="ApifyTools")
160
-
self.apify_api_token = apify_api_token or os.getenv('APIFY_API_TOKEN')
0 commit comments