webscout 8.2.3__py3-none-any.whl → 8.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webscout might be problematic. Click here for more details.
- webscout/AIutel.py +226 -14
- webscout/Bard.py +579 -206
- webscout/DWEBS.py +78 -35
- webscout/Extra/gguf.py +2 -0
- webscout/Extra/tempmail/base.py +1 -1
- webscout/Provider/AISEARCH/hika_search.py +4 -0
- webscout/Provider/AISEARCH/scira_search.py +2 -5
- webscout/Provider/Aitopia.py +75 -51
- webscout/Provider/AllenAI.py +181 -147
- webscout/Provider/ChatGPTClone.py +97 -86
- webscout/Provider/ChatSandbox.py +342 -0
- webscout/Provider/Cloudflare.py +79 -32
- webscout/Provider/Deepinfra.py +135 -94
- webscout/Provider/ElectronHub.py +103 -39
- webscout/Provider/ExaChat.py +36 -20
- webscout/Provider/GPTWeb.py +103 -47
- webscout/Provider/GithubChat.py +52 -49
- webscout/Provider/GizAI.py +283 -0
- webscout/Provider/Glider.py +39 -28
- webscout/Provider/Groq.py +222 -91
- webscout/Provider/HeckAI.py +93 -69
- webscout/Provider/HuggingFaceChat.py +113 -106
- webscout/Provider/Hunyuan.py +94 -83
- webscout/Provider/Jadve.py +104 -79
- webscout/Provider/LambdaChat.py +142 -123
- webscout/Provider/Llama3.py +94 -39
- webscout/Provider/MCPCore.py +315 -0
- webscout/Provider/Marcus.py +95 -37
- webscout/Provider/Netwrck.py +94 -52
- webscout/Provider/OPENAI/__init__.py +4 -1
- webscout/Provider/OPENAI/ai4chat.py +286 -0
- webscout/Provider/OPENAI/chatgptclone.py +35 -14
- webscout/Provider/OPENAI/deepinfra.py +37 -0
- webscout/Provider/OPENAI/exachat.py +4 -0
- webscout/Provider/OPENAI/groq.py +354 -0
- webscout/Provider/OPENAI/heckai.py +6 -2
- webscout/Provider/OPENAI/mcpcore.py +376 -0
- webscout/Provider/OPENAI/multichat.py +368 -0
- webscout/Provider/OPENAI/netwrck.py +3 -1
- webscout/Provider/OPENAI/scirachat.py +2 -4
- webscout/Provider/OPENAI/textpollinations.py +20 -22
- webscout/Provider/OPENAI/toolbaz.py +1 -0
- webscout/Provider/OpenGPT.py +48 -38
- webscout/Provider/PI.py +178 -93
- webscout/Provider/PizzaGPT.py +66 -36
- webscout/Provider/StandardInput.py +42 -30
- webscout/Provider/TeachAnything.py +95 -52
- webscout/Provider/TextPollinationsAI.py +138 -78
- webscout/Provider/TwoAI.py +162 -81
- webscout/Provider/TypliAI.py +305 -0
- webscout/Provider/Venice.py +97 -58
- webscout/Provider/VercelAI.py +33 -14
- webscout/Provider/WiseCat.py +65 -28
- webscout/Provider/Writecream.py +37 -11
- webscout/Provider/WritingMate.py +135 -63
- webscout/Provider/__init__.py +9 -27
- webscout/Provider/ai4chat.py +6 -7
- webscout/Provider/asksteve.py +53 -44
- webscout/Provider/cerebras.py +77 -31
- webscout/Provider/chatglm.py +47 -37
- webscout/Provider/copilot.py +0 -3
- webscout/Provider/elmo.py +109 -60
- webscout/Provider/granite.py +102 -54
- webscout/Provider/hermes.py +95 -48
- webscout/Provider/koala.py +1 -1
- webscout/Provider/learnfastai.py +113 -54
- webscout/Provider/llama3mitril.py +86 -51
- webscout/Provider/llmchat.py +88 -46
- webscout/Provider/llmchatco.py +110 -115
- webscout/Provider/meta.py +41 -37
- webscout/Provider/multichat.py +67 -28
- webscout/Provider/scira_chat.py +49 -30
- webscout/Provider/scnet.py +106 -53
- webscout/Provider/searchchat.py +87 -88
- webscout/Provider/sonus.py +113 -63
- webscout/Provider/toolbaz.py +115 -82
- webscout/Provider/turboseek.py +90 -43
- webscout/Provider/tutorai.py +82 -64
- webscout/Provider/typefully.py +85 -35
- webscout/Provider/typegpt.py +118 -61
- webscout/Provider/uncovr.py +132 -76
- webscout/Provider/x0gpt.py +69 -26
- webscout/Provider/yep.py +79 -66
- webscout/cli.py +256 -0
- webscout/conversation.py +34 -22
- webscout/exceptions.py +23 -0
- webscout/prompt_manager.py +56 -42
- webscout/version.py +1 -1
- webscout/webscout_search.py +65 -47
- webscout/webscout_search_async.py +81 -126
- webscout/yep_search.py +93 -43
- {webscout-8.2.3.dist-info → webscout-8.2.5.dist-info}/METADATA +183 -50
- {webscout-8.2.3.dist-info → webscout-8.2.5.dist-info}/RECORD +97 -113
- {webscout-8.2.3.dist-info → webscout-8.2.5.dist-info}/WHEEL +1 -1
- webscout-8.2.5.dist-info/entry_points.txt +3 -0
- {webscout-8.2.3.dist-info → webscout-8.2.5.dist-info}/top_level.txt +0 -1
- inferno/__init__.py +0 -6
- inferno/__main__.py +0 -9
- inferno/cli.py +0 -6
- webscout/Local/__init__.py +0 -12
- webscout/Local/__main__.py +0 -9
- webscout/Local/api.py +0 -576
- webscout/Local/cli.py +0 -516
- webscout/Local/config.py +0 -75
- webscout/Local/llm.py +0 -287
- webscout/Local/model_manager.py +0 -253
- webscout/Local/server.py +0 -721
- webscout/Local/utils.py +0 -93
- webscout/Provider/C4ai.py +0 -432
- webscout/Provider/ChatGPTES.py +0 -237
- webscout/Provider/Chatify.py +0 -175
- webscout/Provider/DeepSeek.py +0 -196
- webscout/Provider/Llama.py +0 -200
- webscout/Provider/Phind.py +0 -535
- webscout/Provider/WebSim.py +0 -228
- webscout/Provider/askmyai.py +0 -158
- webscout/Provider/gaurish.py +0 -244
- webscout/Provider/labyrinth.py +0 -340
- webscout/Provider/lepton.py +0 -194
- webscout/Provider/llamatutor.py +0 -192
- webscout-8.2.3.dist-info/entry_points.txt +0 -5
- {webscout-8.2.3.dist-info → webscout-8.2.5.dist-info/licenses}/LICENSE.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.5
|
|
4
4
|
Summary: Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, webai (terminal gpt and open interpreter) and offline LLMs and more
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
@@ -41,7 +41,7 @@ Requires-Dist: pip
|
|
|
41
41
|
Requires-Dist: nodriver
|
|
42
42
|
Requires-Dist: mistune
|
|
43
43
|
Requires-Dist: tenacity
|
|
44
|
-
Requires-Dist:
|
|
44
|
+
Requires-Dist: curl_cffi
|
|
45
45
|
Requires-Dist: nest-asyncio
|
|
46
46
|
Requires-Dist: websocket-client
|
|
47
47
|
Requires-Dist: colorama
|
|
@@ -61,23 +61,26 @@ Requires-Dist: html5lib
|
|
|
61
61
|
Requires-Dist: aiofiles
|
|
62
62
|
Requires-Dist: openai
|
|
63
63
|
Requires-Dist: prompt-toolkit
|
|
64
|
-
Requires-Dist:
|
|
65
|
-
Requires-Dist:
|
|
66
|
-
Requires-Dist: gradio-client
|
|
64
|
+
Requires-Dist: pyreqwest_impersonate
|
|
65
|
+
Requires-Dist: gradio_client
|
|
67
66
|
Requires-Dist: psutil
|
|
68
67
|
Requires-Dist: aiohttp
|
|
69
|
-
Provides-Extra: local
|
|
70
|
-
Requires-Dist: llama-cpp-python; extra == "local"
|
|
71
|
-
Requires-Dist: fastapi; extra == "local"
|
|
72
|
-
Requires-Dist: uvicorn; extra == "local"
|
|
73
|
-
Requires-Dist: rich; extra == "local"
|
|
74
|
-
Requires-Dist: typer; extra == "local"
|
|
75
|
-
Requires-Dist: huggingface-hub; extra == "local"
|
|
76
|
-
Requires-Dist: pydantic; extra == "local"
|
|
77
|
-
Requires-Dist: requests; extra == "local"
|
|
78
68
|
Provides-Extra: dev
|
|
79
69
|
Requires-Dist: ruff>=0.1.6; extra == "dev"
|
|
80
70
|
Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
71
|
+
Dynamic: author
|
|
72
|
+
Dynamic: author-email
|
|
73
|
+
Dynamic: classifier
|
|
74
|
+
Dynamic: description
|
|
75
|
+
Dynamic: description-content-type
|
|
76
|
+
Dynamic: keywords
|
|
77
|
+
Dynamic: license
|
|
78
|
+
Dynamic: license-file
|
|
79
|
+
Dynamic: project-url
|
|
80
|
+
Dynamic: provides-extra
|
|
81
|
+
Dynamic: requires-dist
|
|
82
|
+
Dynamic: requires-python
|
|
83
|
+
Dynamic: summary
|
|
81
84
|
|
|
82
85
|
<div align="center">
|
|
83
86
|
<a href="https://github.com/OEvortex/Webscout">
|
|
@@ -101,11 +104,29 @@ Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
|
101
104
|
</p>
|
|
102
105
|
</div>
|
|
103
106
|
|
|
107
|
+
<hr/>
|
|
108
|
+
|
|
109
|
+
## 📋 Table of Contents
|
|
110
|
+
|
|
111
|
+
- [🌟 Key Features](#-features)
|
|
112
|
+
- [⚙️ Installation](#️-installation)
|
|
113
|
+
- [🖥️ Command Line Interface](#️-command-line-interface)
|
|
114
|
+
- [🔍 Search Engines](#-search-engines)
|
|
115
|
+
- [🦆 DuckDuckGo Search](#-duckduckgo-search-with-webs-and-asyncwebs)
|
|
116
|
+
- [💻 WEBS API Reference](#-webs-api-reference)
|
|
117
|
+
- [🤖 AI Models and Voices](#-ai-models-and-voices)
|
|
118
|
+
- [💬 AI Chat Providers](#-ai-chat-providers)
|
|
119
|
+
- [👨💻 Advanced AI Interfaces](#-advanced-ai-interfaces)
|
|
120
|
+
- [🤝 Contributing](#-contributing)
|
|
121
|
+
- [🙏 Acknowledgments](#-acknowledgments)
|
|
122
|
+
|
|
123
|
+
<hr/>
|
|
124
|
+
|
|
104
125
|
> [!IMPORTANT]
|
|
105
|
-
> Webscout supports three types of compatibility
|
|
126
|
+
> **Webscout supports three types of compatibility:**
|
|
106
127
|
> - **Native Compatibility:** Webscout's own native API for maximum flexibility
|
|
107
128
|
> - **OpenAI Compatibility:** Use providers with OpenAI-compatible interfaces
|
|
108
|
-
> - **Local LLM Compatibility:** Run local models with [Inferno](
|
|
129
|
+
> - **Local LLM Compatibility:** Run local models with [Inferno](https://github.com/HelpingAI/inferno), an OpenAI-compatible server (now a standalone package)
|
|
109
130
|
>
|
|
110
131
|
> Choose the approach that best fits your needs! For OpenAI compatibility, check the [OpenAI Providers README](webscout/Provider/OPENAI/README.md).
|
|
111
132
|
|
|
@@ -124,36 +145,59 @@ Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
|
124
145
|
</p>
|
|
125
146
|
</div>
|
|
126
147
|
|
|
148
|
+
<hr/>
|
|
127
149
|
|
|
128
150
|
## 🚀 Features
|
|
129
151
|
|
|
130
|
-
|
|
152
|
+
<details open>
|
|
153
|
+
<summary><b>Search & AI</b></summary>
|
|
154
|
+
<p>
|
|
155
|
+
|
|
131
156
|
* **Comprehensive Search:** Leverage Google, DuckDuckGo, and Yep for diverse search results
|
|
132
157
|
* **AI Powerhouse:** Access and interact with various AI models through three compatibility options:
|
|
133
158
|
* **Native API:** Use Webscout's native interfaces for providers like OpenAI, Cohere, Gemini, and many more
|
|
134
159
|
* **[OpenAI-Compatible Providers](webscout/Provider/OPENAI/README.md):** Seamlessly integrate with various AI providers using standardized OpenAI-compatible interfaces
|
|
135
|
-
* **[Local LLMs with Inferno](
|
|
160
|
+
* **[Local LLMs with Inferno](https://github.com/HelpingAI/inferno):** Run local models with an OpenAI-compatible server (now available as a standalone package)
|
|
136
161
|
* **[AI Search](webscout/Provider/AISEARCH/README.md):** AI-powered search engines with advanced capabilities
|
|
162
|
+
</p>
|
|
163
|
+
</details>
|
|
164
|
+
|
|
165
|
+
<details open>
|
|
166
|
+
<summary><b>Media & Content Tools</b></summary>
|
|
167
|
+
<p>
|
|
137
168
|
|
|
138
|
-
### Media & Content Tools
|
|
139
169
|
* **[YouTube Toolkit](webscout/Extra/YTToolkit/README.md):** Advanced YouTube video and transcript management with multi-language support
|
|
140
170
|
* **[Text-to-Speech (TTS)](webscout/Provider/TTS/README.md):** Convert text into natural-sounding speech using multiple AI-powered providers
|
|
141
171
|
* **[Text-to-Image](webscout/Provider/TTI/README.md):** Generate high-quality images using a wide range of AI art providers
|
|
142
172
|
* **[Weather Tools](webscout/Extra/weather.md):** Retrieve detailed weather information for any location
|
|
173
|
+
</p>
|
|
174
|
+
</details>
|
|
175
|
+
|
|
176
|
+
<details open>
|
|
177
|
+
<summary><b>Developer Tools</b></summary>
|
|
178
|
+
<p>
|
|
143
179
|
|
|
144
|
-
### Developer Tools
|
|
145
180
|
* **[GitAPI](webscout/Extra/GitToolkit/gitapi):** Powerful GitHub data extraction toolkit without authentication requirements for public data
|
|
146
181
|
* **[SwiftCLI](webscout/swiftcli/Readme.md):** A powerful and elegant CLI framework for beautiful command-line interfaces
|
|
147
182
|
* **[LitPrinter](webscout/litprinter/Readme.md):** Styled console output with rich formatting and colors
|
|
148
183
|
* **[LitLogger](webscout/litlogger/Readme.md):** Simplified logging with customizable formats and color schemes
|
|
149
184
|
* **[LitAgent](webscout/litagent/Readme.md):** Modern user agent generator that keeps your requests undetectable
|
|
150
185
|
* **[Scout](webscout/scout/README.md):** Advanced web parsing and crawling library with intelligent HTML/XML parsing
|
|
151
|
-
* **[Inferno](
|
|
152
|
-
* **GGUF Conversion:** Convert and quantize Hugging Face models to GGUF format
|
|
186
|
+
* **[Inferno](https://github.com/HelpingAI/inferno):** Run local LLMs with an OpenAI-compatible API and interactive CLI (now a standalone package: `pip install inferno-llm`)
|
|
187
|
+
* **[GGUF Conversion](webscout/Extra/gguf.md):** Convert and quantize Hugging Face models to GGUF format
|
|
188
|
+
</p>
|
|
189
|
+
</details>
|
|
190
|
+
|
|
191
|
+
<details open>
|
|
192
|
+
<summary><b>Privacy & Utilities</b></summary>
|
|
193
|
+
<p>
|
|
153
194
|
|
|
154
|
-
### Privacy & Utilities
|
|
155
195
|
* **[Tempmail](webscout/Extra/tempmail/README.md) & Temp Number:** Generate temporary email addresses and phone numbers
|
|
156
196
|
* **[Awesome Prompts](webscout/Extra/Act.md):** Curated collection of system prompts for specialized AI personas
|
|
197
|
+
</p>
|
|
198
|
+
</details>
|
|
199
|
+
|
|
200
|
+
<hr/>
|
|
157
201
|
|
|
158
202
|
## ⚙️ Installation
|
|
159
203
|
|
|
@@ -162,6 +206,9 @@ Install Webscout using pip:
|
|
|
162
206
|
```bash
|
|
163
207
|
pip install -U webscout
|
|
164
208
|
```
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<hr/>
|
|
165
212
|
|
|
166
213
|
## 🖥️ Command Line Interface
|
|
167
214
|
|
|
@@ -171,7 +218,9 @@ Webscout provides a powerful command-line interface for quick access to its feat
|
|
|
171
218
|
python -m webscout --help
|
|
172
219
|
```
|
|
173
220
|
|
|
174
|
-
|
|
221
|
+
<details open>
|
|
222
|
+
<summary><b>Web Search Commands</b></summary>
|
|
223
|
+
<p>
|
|
175
224
|
|
|
176
225
|
| Command | Description |
|
|
177
226
|
|---------|-------------|
|
|
@@ -186,26 +235,46 @@ python -m webscout --help
|
|
|
186
235
|
| `python -m webscout version` | Display the current version |
|
|
187
236
|
| `python -m webscout videos -k "query"` | Search for videos |
|
|
188
237
|
| `python -m webscout weather -l "location"` | Get weather information |
|
|
238
|
+
| `python -m webscout google_text -k "query"` | Perform a text search using Google |
|
|
239
|
+
| `python -m webscout google_news -k "query"` | Search for news using Google |
|
|
240
|
+
| `python -m webscout google_suggestions -q "query"` | Get search suggestions from Google |
|
|
241
|
+
| `python -m webscout yep_text -k "query"` | Perform a text search using Yep |
|
|
242
|
+
| `python -m webscout yep_images -k "query"` | Search for images using Yep |
|
|
243
|
+
| `python -m webscout yep_suggestions -q "query"` | Get search suggestions from Yep |
|
|
244
|
+
</p>
|
|
245
|
+
</details>
|
|
189
246
|
|
|
190
|
-
|
|
247
|
+
<details open>
|
|
248
|
+
<summary><b>Inferno LLM Commands</b></summary>
|
|
249
|
+
<p>
|
|
191
250
|
|
|
192
|
-
Inferno
|
|
251
|
+
Inferno is now a standalone package. Install it separately with:
|
|
193
252
|
|
|
194
253
|
```bash
|
|
195
|
-
|
|
254
|
+
pip install inferno-llm
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
After installation, you can use its CLI for managing and using local LLMs:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
inferno --help
|
|
196
261
|
```
|
|
197
262
|
|
|
198
263
|
| Command | Description |
|
|
199
264
|
|---------|-------------|
|
|
200
|
-
| `
|
|
201
|
-
| `
|
|
202
|
-
| `
|
|
203
|
-
| `
|
|
204
|
-
| `
|
|
205
|
-
| `
|
|
265
|
+
| `inferno pull <model>` | Download a model from Hugging Face |
|
|
266
|
+
| `inferno list` | List downloaded models |
|
|
267
|
+
| `inferno serve <model>` | Start a model server with OpenAI-compatible API |
|
|
268
|
+
| `inferno run <model>` | Chat with a model interactively |
|
|
269
|
+
| `inferno remove <model>` | Remove a downloaded model |
|
|
270
|
+
| `inferno version` | Show version information |
|
|
271
|
+
|
|
272
|
+
For more information, visit the [Inferno GitHub repository](https://github.com/HelpingAI/inferno) or [PyPI package page](https://pypi.org/project/inferno-llm/).
|
|
273
|
+
</p>
|
|
274
|
+
</details>
|
|
206
275
|
|
|
207
276
|
> [!NOTE]
|
|
208
|
-
> Hardware requirements for running models
|
|
277
|
+
> **Hardware requirements for running models with Inferno:**
|
|
209
278
|
> - Around 2 GB of RAM for 1B models
|
|
210
279
|
> - Around 4 GB of RAM for 3B models
|
|
211
280
|
> - At least 8 GB of RAM for 7B models
|
|
@@ -213,7 +282,7 @@ python -m inferno --help
|
|
|
213
282
|
> - 32 GB of RAM for 33B models
|
|
214
283
|
> - GPU acceleration is recommended for better performance
|
|
215
284
|
|
|
216
|
-
|
|
285
|
+
<hr/>
|
|
217
286
|
|
|
218
287
|
## 🔍 Search Engines
|
|
219
288
|
|
|
@@ -291,11 +360,15 @@ from webscout import search
|
|
|
291
360
|
results = search("Python programming", num_results=5)
|
|
292
361
|
```
|
|
293
362
|
|
|
363
|
+
<hr/>
|
|
364
|
+
|
|
294
365
|
## 🦆 DuckDuckGo Search with WEBS and AsyncWEBS
|
|
295
366
|
|
|
296
367
|
Webscout provides powerful interfaces to DuckDuckGo's search capabilities through the `WEBS` and `AsyncWEBS` classes.
|
|
297
368
|
|
|
298
|
-
|
|
369
|
+
<details open>
|
|
370
|
+
<summary><b>Synchronous Usage with WEBS</b></summary>
|
|
371
|
+
<p>
|
|
299
372
|
|
|
300
373
|
```python
|
|
301
374
|
from webscout import WEBS
|
|
@@ -307,8 +380,12 @@ with WEBS() as webs:
|
|
|
307
380
|
for result in results:
|
|
308
381
|
print(f"Title: {result['title']}\nURL: {result['url']}")
|
|
309
382
|
```
|
|
383
|
+
</p>
|
|
384
|
+
</details>
|
|
310
385
|
|
|
311
|
-
|
|
386
|
+
<details open>
|
|
387
|
+
<summary><b>Asynchronous Usage with AsyncWEBS</b></summary>
|
|
388
|
+
<p>
|
|
312
389
|
|
|
313
390
|
```python
|
|
314
391
|
import asyncio
|
|
@@ -336,10 +413,14 @@ async def main():
|
|
|
336
413
|
# Run the async function
|
|
337
414
|
asyncio.run(main())
|
|
338
415
|
```
|
|
416
|
+
</p>
|
|
417
|
+
</details>
|
|
339
418
|
|
|
340
|
-
> [!
|
|
419
|
+
> [!TIP]
|
|
341
420
|
> Always use these classes with a context manager (`with` statement) to ensure proper resource management and cleanup.
|
|
342
421
|
|
|
422
|
+
<hr/>
|
|
423
|
+
|
|
343
424
|
## 💻 WEBS API Reference
|
|
344
425
|
|
|
345
426
|
The WEBS class provides comprehensive access to DuckDuckGo's search capabilities through a clean, intuitive API.
|
|
@@ -358,7 +439,9 @@ The WEBS class provides comprehensive access to DuckDuckGo's search capabilities
|
|
|
358
439
|
| `suggestions()` | Search suggestions | `webs.suggestions('how to')` |
|
|
359
440
|
| `weather()` | Weather information | `webs.weather('london')` |
|
|
360
441
|
|
|
361
|
-
|
|
442
|
+
<details>
|
|
443
|
+
<summary><b>Example: Text Search</b></summary>
|
|
444
|
+
<p>
|
|
362
445
|
|
|
363
446
|
```python
|
|
364
447
|
from webscout import WEBS
|
|
@@ -377,8 +460,12 @@ with WEBS() as webs:
|
|
|
377
460
|
print(f"URL: {result['url']}")
|
|
378
461
|
print(f"Description: {result['body']}\n")
|
|
379
462
|
```
|
|
463
|
+
</p>
|
|
464
|
+
</details>
|
|
380
465
|
|
|
381
|
-
|
|
466
|
+
<details>
|
|
467
|
+
<summary><b>Example: News Search with Formatting</b></summary>
|
|
468
|
+
<p>
|
|
382
469
|
|
|
383
470
|
```python
|
|
384
471
|
from webscout import WEBS
|
|
@@ -416,8 +503,12 @@ def fetch_formatted_news(keywords, timelimit='d', max_results=20):
|
|
|
416
503
|
news = fetch_formatted_news('artificial intelligence', timelimit='w', max_results=5)
|
|
417
504
|
print('\n'.join(news))
|
|
418
505
|
```
|
|
506
|
+
</p>
|
|
507
|
+
</details>
|
|
419
508
|
|
|
420
|
-
|
|
509
|
+
<details>
|
|
510
|
+
<summary><b>Example: Weather Information</b></summary>
|
|
511
|
+
<p>
|
|
421
512
|
|
|
422
513
|
```python
|
|
423
514
|
from webscout import WEBS
|
|
@@ -432,12 +523,18 @@ with WEBS() as webs:
|
|
|
432
523
|
print(f"Temperature: {weather.get('temperature', 'N/A')}")
|
|
433
524
|
print(f"Conditions: {weather.get('condition', 'N/A')}")
|
|
434
525
|
```
|
|
526
|
+
</p>
|
|
527
|
+
</details>
|
|
528
|
+
|
|
529
|
+
<hr/>
|
|
435
530
|
|
|
436
531
|
## 🤖 AI Models and Voices
|
|
437
532
|
|
|
438
533
|
Webscout provides easy access to a wide range of AI models and voice options.
|
|
439
534
|
|
|
440
|
-
|
|
535
|
+
<details open>
|
|
536
|
+
<summary><b>LLM Models</b></summary>
|
|
537
|
+
<p>
|
|
441
538
|
|
|
442
539
|
Access and manage Large Language Models with Webscout's model utilities.
|
|
443
540
|
|
|
@@ -465,8 +562,12 @@ if isinstance(available_models, list):
|
|
|
465
562
|
else:
|
|
466
563
|
print(f" {available_models}")
|
|
467
564
|
```
|
|
565
|
+
</p>
|
|
566
|
+
</details>
|
|
468
567
|
|
|
469
|
-
|
|
568
|
+
<details open>
|
|
569
|
+
<summary><b>TTS Voices</b></summary>
|
|
570
|
+
<p>
|
|
470
571
|
|
|
471
572
|
Access and manage Text-to-Speech voices across multiple providers.
|
|
472
573
|
|
|
@@ -494,6 +595,10 @@ if isinstance(available_voices, dict):
|
|
|
494
595
|
if len(available_voices) > 5:
|
|
495
596
|
print(f" ... and {len(available_voices) - 5} more")
|
|
496
597
|
```
|
|
598
|
+
</p>
|
|
599
|
+
</details>
|
|
600
|
+
|
|
601
|
+
<hr/>
|
|
497
602
|
|
|
498
603
|
## 💬 AI Chat Providers
|
|
499
604
|
|
|
@@ -501,6 +606,8 @@ Webscout offers a comprehensive collection of AI chat providers, giving you acce
|
|
|
501
606
|
|
|
502
607
|
### Popular AI Providers
|
|
503
608
|
|
|
609
|
+
<div class="provider-table">
|
|
610
|
+
|
|
504
611
|
| Provider | Description | Key Features |
|
|
505
612
|
|----------|-------------|-------------|
|
|
506
613
|
| `OPENAI` | OpenAI's models | GPT-3.5, GPT-4, tool calling |
|
|
@@ -516,7 +623,11 @@ Webscout offers a comprehensive collection of AI chat providers, giving you acce
|
|
|
516
623
|
| `ChatGPTClone` | ChatGPT-like interface | Multiple model options |
|
|
517
624
|
| `TypeGPT` | TypeChat models | Code generation focus |
|
|
518
625
|
|
|
519
|
-
|
|
626
|
+
</div>
|
|
627
|
+
|
|
628
|
+
<details>
|
|
629
|
+
<summary><b>Example: Using Duckchat</b></summary>
|
|
630
|
+
<p>
|
|
520
631
|
|
|
521
632
|
```python
|
|
522
633
|
from webscout import WEBS
|
|
@@ -529,8 +640,12 @@ with WEBS() as webs:
|
|
|
529
640
|
)
|
|
530
641
|
print(response)
|
|
531
642
|
```
|
|
643
|
+
</p>
|
|
644
|
+
</details>
|
|
532
645
|
|
|
533
|
-
|
|
646
|
+
<details>
|
|
647
|
+
<summary><b>Example: Using Meta AI</b></summary>
|
|
648
|
+
<p>
|
|
534
649
|
|
|
535
650
|
```python
|
|
536
651
|
from webscout import Meta
|
|
@@ -555,8 +670,12 @@ response = meta_ai.ask("Create an image of a futuristic city")
|
|
|
555
670
|
for media in response.get("media", []):
|
|
556
671
|
print(media["url"])
|
|
557
672
|
```
|
|
673
|
+
</p>
|
|
674
|
+
</details>
|
|
558
675
|
|
|
559
|
-
|
|
676
|
+
<details>
|
|
677
|
+
<summary><b>Example: GROQ with Tool Calling</b></summary>
|
|
678
|
+
<p>
|
|
560
679
|
|
|
561
680
|
```python
|
|
562
681
|
from webscout import GROQ, WEBS
|
|
@@ -631,10 +750,16 @@ print(response)
|
|
|
631
750
|
response = client.chat("Find information about quantum computing", tools=tools)
|
|
632
751
|
print(response)
|
|
633
752
|
```
|
|
753
|
+
</p>
|
|
754
|
+
</details>
|
|
755
|
+
|
|
756
|
+
<hr/>
|
|
634
757
|
|
|
635
758
|
## 👨💻 Advanced AI Interfaces
|
|
636
759
|
|
|
637
|
-
|
|
760
|
+
<details open>
|
|
761
|
+
<summary><b>Direct Model Access with LLM and VLM</b></summary>
|
|
762
|
+
<p>
|
|
638
763
|
|
|
639
764
|
Webscout provides direct interfaces to language and vision-language models through the `LLM` and `VLM` classes.
|
|
640
765
|
|
|
@@ -661,8 +786,12 @@ response = vlm.chat([
|
|
|
661
786
|
])
|
|
662
787
|
print(response)
|
|
663
788
|
```
|
|
789
|
+
</p>
|
|
790
|
+
</details>
|
|
664
791
|
|
|
665
|
-
|
|
792
|
+
<details open>
|
|
793
|
+
<summary><b>GGUF Model Conversion</b></summary>
|
|
794
|
+
<p>
|
|
666
795
|
|
|
667
796
|
Webscout provides tools to convert and quantize Hugging Face models into the GGUF format for offline use.
|
|
668
797
|
|
|
@@ -704,6 +833,8 @@ converter.convert()
|
|
|
704
833
|
```bash
|
|
705
834
|
python -m webscout.Extra.gguf convert -m "mistralai/Mistral-7B-Instruct-v0.2" -q "q4_k_m"
|
|
706
835
|
```
|
|
836
|
+
</p>
|
|
837
|
+
</details>
|
|
707
838
|
|
|
708
839
|
<div align="center">
|
|
709
840
|
<p>
|
|
@@ -712,6 +843,8 @@ python -m webscout.Extra.gguf convert -m "mistralai/Mistral-7B-Instruct-v0.2" -q
|
|
|
712
843
|
</p>
|
|
713
844
|
</div>
|
|
714
845
|
|
|
846
|
+
<hr/>
|
|
847
|
+
|
|
715
848
|
## 🤝 Contributing
|
|
716
849
|
|
|
717
850
|
Contributions are welcome! If you'd like to contribute to Webscout, please follow these steps:
|
|
@@ -727,7 +860,7 @@ Contributions are welcome! If you'd like to contribute to Webscout, please follo
|
|
|
727
860
|
* All the amazing developers who have contributed to the project
|
|
728
861
|
* The open-source community for their support and inspiration
|
|
729
862
|
|
|
730
|
-
|
|
863
|
+
<hr/>
|
|
731
864
|
|
|
732
865
|
<div align="center">
|
|
733
866
|
<p>Made with ❤️ by the Webscout team</p>
|