webscout 5.8__py3-none-any.whl → 6.0__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/Provider/Amigo.py +267 -0
- webscout/Provider/ChatHub.py +209 -0
- webscout/Provider/Chatify.py +3 -3
- webscout/Provider/Cloudflare.py +3 -3
- webscout/Provider/DARKAI.py +1 -1
- webscout/Provider/Deepinfra.py +95 -389
- webscout/Provider/Deepseek.py +4 -6
- webscout/Provider/DiscordRocks.py +3 -3
- webscout/Provider/Free2GPT.py +3 -3
- webscout/Provider/OLLAMA.py +4 -4
- webscout/Provider/RUBIKSAI.py +3 -3
- webscout/Provider/TTI/WebSimAI.py +142 -0
- webscout/Provider/TTI/__init__.py +3 -1
- webscout/Provider/TTI/amigo.py +148 -0
- webscout/Provider/TTS/__init__.py +2 -1
- webscout/Provider/TTS/parler.py +108 -0
- webscout/Provider/Youchat.py +4 -5
- webscout/Provider/__init__.py +10 -5
- webscout/Provider/ai4chat.py +3 -2
- webscout/Provider/bagoodex.py +145 -0
- webscout/Provider/bixin.py +3 -3
- webscout/Provider/cleeai.py +3 -3
- webscout/Provider/elmo.py +2 -5
- webscout/Provider/julius.py +6 -40
- webscout/Provider/learnfastai.py +253 -0
- webscout/Provider/llamatutor.py +2 -2
- webscout/Provider/prefind.py +232 -0
- webscout/Provider/promptrefine.py +3 -3
- webscout/Provider/turboseek.py +1 -1
- webscout/Provider/twitterclone.py +25 -41
- webscout/Provider/upstage.py +3 -3
- webscout/Provider/x0gpt.py +6 -6
- webscout/version.py +1 -1
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/METADATA +187 -121
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/RECORD +39 -32
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/WHEEL +1 -1
- webscout/Provider/Poe.py +0 -208
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/LICENSE.md +0 -0
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/entry_points.txt +0 -0
- {webscout-5.8.dist-info → webscout-6.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version:
|
|
3
|
+
Version: 6.0
|
|
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
|
|
@@ -28,15 +28,14 @@ Requires-Dist: docstring-inheritance
|
|
|
28
28
|
Requires-Dist: click
|
|
29
29
|
Requires-Dist: curl-cffi
|
|
30
30
|
Requires-Dist: nest-asyncio
|
|
31
|
-
Requires-Dist: g4f
|
|
31
|
+
Requires-Dist: g4f>=0.2.2.3
|
|
32
32
|
Requires-Dist: g4f[webdriver]
|
|
33
33
|
Requires-Dist: rich
|
|
34
34
|
Requires-Dist: beautifulsoup4
|
|
35
35
|
Requires-Dist: markdownify
|
|
36
|
-
Requires-Dist: pydantic
|
|
37
36
|
Requires-Dist: requests
|
|
38
37
|
Requires-Dist: google-generativeai
|
|
39
|
-
Requires-Dist: lxml
|
|
38
|
+
Requires-Dist: lxml>=5.2.2
|
|
40
39
|
Requires-Dist: termcolor
|
|
41
40
|
Requires-Dist: orjson
|
|
42
41
|
Requires-Dist: PyYAML
|
|
@@ -44,8 +43,6 @@ Requires-Dist: appdirs
|
|
|
44
43
|
Requires-Dist: tls-client
|
|
45
44
|
Requires-Dist: clipman
|
|
46
45
|
Requires-Dist: playsound
|
|
47
|
-
Requires-Dist: poe-api-wrapper
|
|
48
|
-
Requires-Dist: pyreqwest-impersonate
|
|
49
46
|
Requires-Dist: ollama
|
|
50
47
|
Requires-Dist: pyfiglet
|
|
51
48
|
Requires-Dist: pillow
|
|
@@ -57,13 +54,13 @@ Requires-Dist: openai
|
|
|
57
54
|
Requires-Dist: prompt-toolkit
|
|
58
55
|
Requires-Dist: fake-useragent
|
|
59
56
|
Provides-Extra: dev
|
|
60
|
-
Requires-Dist: ruff
|
|
61
|
-
Requires-Dist: pytest
|
|
57
|
+
Requires-Dist: ruff>=0.1.6; extra == "dev"
|
|
58
|
+
Requires-Dist: pytest>=7.4.2; extra == "dev"
|
|
62
59
|
Provides-Extra: local
|
|
63
|
-
Requires-Dist: llama-cpp-python
|
|
64
|
-
Requires-Dist: colorama
|
|
65
|
-
Requires-Dist: numpy
|
|
66
|
-
Requires-Dist: huggingface-hub[cli]
|
|
60
|
+
Requires-Dist: llama-cpp-python; extra == "local"
|
|
61
|
+
Requires-Dist: colorama; extra == "local"
|
|
62
|
+
Requires-Dist: numpy; extra == "local"
|
|
63
|
+
Requires-Dist: huggingface-hub[cli]; extra == "local"
|
|
67
64
|
|
|
68
65
|
<div align="center">
|
|
69
66
|
<!-- Replace `#` with your actual links -->
|
|
@@ -75,32 +72,53 @@ Requires-Dist: huggingface-hub[cli] ; extra == 'local'
|
|
|
75
72
|
|
|
76
73
|
<div align="center">
|
|
77
74
|
<!-- Replace `#` with your actual links -->
|
|
78
|
-
<a href="https://youtube.com/@OEvortex"
|
|
79
|
-
|
|
75
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
76
|
+
</div>
|
|
77
|
+
<div align="center">
|
|
78
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
79
|
+
</div>
|
|
80
80
|
<div align="center">
|
|
81
|
-
<a href="https://
|
|
81
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
# WEBSCOUT
|
|
87
|
+
# WEBSCOUT 🕵️️
|
|
88
88
|
</div>
|
|
89
|
+
|
|
89
90
|
<p align="center">
|
|
91
|
+
Search for anything using Google, DuckDuckGo, Phind.com, access AI models, transcribe YouTube videos, generate temporary emails and phone numbers, utilize text-to-speech, leverage WebAI (terminal GPT and open interpreter), and explore offline LLMs, and much more!
|
|
92
|
+
</p>
|
|
93
|
+
|
|
90
94
|
<div align="center">
|
|
91
95
|
<img src="https://img.shields.io/badge/WebScout-API-blue?style=for-the-badge&logo=WebScout" alt="WebScout API Badge">
|
|
96
|
+
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
97
|
+
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
92
98
|
</div>
|
|
93
|
-
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
94
|
-
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
95
|
-
|
|
96
|
-
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
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
## 🚀 Features
|
|
101
|
+
* **Comprehensive Search:** Leverage Google, DuckDuckGo, and Phind.com for diverse search results.
|
|
102
|
+
* **AI Powerhouse:** Access and interact with various AI models, including OpenAI, Cohere, and more.
|
|
103
|
+
* **YouTube Toolkit:** Transcribe YouTube videos effortlessly and download audio/video content.
|
|
104
|
+
* **Tempmail & Temp Number:** Generate temporary email addresses and phone numbers for enhanced privacy.
|
|
105
|
+
* **Text-to-Speech (TTS):** Convert text into natural-sounding speech using various TTS providers.
|
|
106
|
+
* **WebAI:** Experience the power of terminal-based GPT and an open interpreter for code execution and more.
|
|
107
|
+
* **Offline LLMs:** Utilize powerful language models offline with GGUF support.
|
|
108
|
+
* **Extensive Provider Ecosystem:** Explore a vast collection of providers, including BasedGPT, DeepSeek, and many others.
|
|
109
|
+
* **Local LLM Execution:** Run GGUF models locally with minimal configuration.
|
|
110
|
+
* **Rawdog Scripting:** Execute Python scripts directly within your terminal using the `rawdog` feature.
|
|
111
|
+
* **GGUF Conversion & Quantization:** Convert and quantize Hugging Face models to GGUF format.
|
|
112
|
+
* **Autollama:** Download Hugging Face models and automatically convert them for Ollama compatibility.
|
|
113
|
+
* **Function Calling (Beta):** Experiment with function calling capabilities for enhanced AI interactions.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## ⚙️ Installation
|
|
100
117
|
```python
|
|
101
118
|
pip install -U webscout
|
|
102
119
|
```
|
|
103
|
-
|
|
120
|
+
|
|
121
|
+
## 🖥️ CLI Usage
|
|
104
122
|
|
|
105
123
|
```python3
|
|
106
124
|
python -m webscout --help
|
|
@@ -118,13 +136,11 @@ python -m webscout --help
|
|
|
118
136
|
| python -m webscout version | A command-line interface command that prints and returns the version of the program. |
|
|
119
137
|
| python -m webscout videos -k Text | CLI function to perform a videos search using DuckDuckGo API. |
|
|
120
138
|
|
|
139
|
+
[Go To TOP](#webscout-️)
|
|
121
140
|
|
|
122
|
-
|
|
123
|
-
[Go To TOP](#TOP)
|
|
124
|
-
|
|
125
|
-
## Regions
|
|
141
|
+
## 🌍 Regions
|
|
126
142
|
<details>
|
|
127
|
-
<summary>
|
|
143
|
+
<summary>Expand</summary>
|
|
128
144
|
|
|
129
145
|
xa-ar for Arabia
|
|
130
146
|
xa-en for Arabia (en)
|
|
@@ -199,8 +215,9 @@ python -m webscout --help
|
|
|
199
215
|
</details>
|
|
200
216
|
|
|
201
217
|
|
|
202
|
-
[Go To TOP](#
|
|
203
|
-
|
|
218
|
+
[Go To TOP](#webscout-️)
|
|
219
|
+
|
|
220
|
+
## ⬇️ YTdownloader
|
|
204
221
|
|
|
205
222
|
```python
|
|
206
223
|
from os import rename, getcwd
|
|
@@ -224,23 +241,25 @@ if __name__ == "__main__":
|
|
|
224
241
|
download_video("https://www.youtube.com/watch?v=c0tMvzB0OKw")
|
|
225
242
|
```
|
|
226
243
|
|
|
227
|
-
## Weather
|
|
228
|
-
|
|
244
|
+
## ☀️ Weather
|
|
245
|
+
|
|
246
|
+
### 1. Weather
|
|
229
247
|
```python
|
|
230
248
|
from webscout import weather as w
|
|
231
249
|
weather = w.get("Qazigund")
|
|
232
250
|
w.print_weather(weather)
|
|
233
251
|
```
|
|
234
|
-
|
|
252
|
+
|
|
253
|
+
### 2. Weather ASCII
|
|
235
254
|
```python
|
|
236
255
|
from webscout import weather_ascii as w
|
|
237
256
|
weather = w.get("Qazigund")
|
|
238
257
|
print(weather)
|
|
239
258
|
```
|
|
240
259
|
|
|
241
|
-
## Tempmail and Temp
|
|
260
|
+
## ✉️ Tempmail and 📞 Temp Number
|
|
242
261
|
|
|
243
|
-
### Temp
|
|
262
|
+
### Temp Number
|
|
244
263
|
```python
|
|
245
264
|
from rich.console import Console
|
|
246
265
|
from webscout import tempid
|
|
@@ -275,6 +294,7 @@ if __name__ == "__main__":
|
|
|
275
294
|
main()
|
|
276
295
|
|
|
277
296
|
```
|
|
297
|
+
|
|
278
298
|
### Tempmail
|
|
279
299
|
```python
|
|
280
300
|
import asyncio
|
|
@@ -324,8 +344,12 @@ if __name__ == '__main__':
|
|
|
324
344
|
asyncio.run(main())
|
|
325
345
|
```
|
|
326
346
|
|
|
327
|
-
## Transcriber
|
|
328
|
-
|
|
347
|
+
## 📝 Transcriber
|
|
348
|
+
|
|
349
|
+
The `transcriber` function in Webscout is a handy tool that transcribes YouTube videos.
|
|
350
|
+
|
|
351
|
+
**Example:**
|
|
352
|
+
|
|
329
353
|
```python
|
|
330
354
|
from webscout import YTTranscriber
|
|
331
355
|
yt = YTTranscriber()
|
|
@@ -335,7 +359,8 @@ transcript = yt.get_transcript(video_url, languages=None)
|
|
|
335
359
|
print(transcript)
|
|
336
360
|
```
|
|
337
361
|
|
|
338
|
-
## GoogleS
|
|
362
|
+
## 🔍 GoogleS (formerly DWEBS)
|
|
363
|
+
|
|
339
364
|
```python
|
|
340
365
|
from webscout import GoogleS
|
|
341
366
|
from rich import print
|
|
@@ -344,7 +369,9 @@ results = searcher.search("HelpingAI-9B", max_results=20, extract_text=False, ma
|
|
|
344
369
|
for result in results:
|
|
345
370
|
print(result)
|
|
346
371
|
```
|
|
372
|
+
|
|
347
373
|
### BingS
|
|
374
|
+
|
|
348
375
|
```python
|
|
349
376
|
from webscout import BingS
|
|
350
377
|
from rich import print
|
|
@@ -354,19 +381,25 @@ for result in results:
|
|
|
354
381
|
print(result)
|
|
355
382
|
```
|
|
356
383
|
|
|
384
|
+
## 🦆 WEBS and AsyncWEBS
|
|
357
385
|
|
|
358
|
-
The WEBS and AsyncWEBS classes are used to retrieve search results from DuckDuckGo.com
|
|
359
|
-
|
|
360
|
-
To
|
|
386
|
+
The `WEBS` and `AsyncWEBS` classes are used to retrieve search results from DuckDuckGo.com.
|
|
387
|
+
|
|
388
|
+
To use the `AsyncWEBS` class, you can perform asynchronous operations using Python's `asyncio` library.
|
|
389
|
+
|
|
390
|
+
To initialize an instance of the `WEBS` or `AsyncWEBS` classes, you can provide the following optional arguments:
|
|
391
|
+
|
|
392
|
+
**Example - WEBS:**
|
|
361
393
|
|
|
362
|
-
Here is an example of initializing the WEBS class:
|
|
363
394
|
```python
|
|
364
395
|
from webscout import WEBS
|
|
365
396
|
|
|
366
397
|
R = WEBS().text("python programming", max_results=5)
|
|
367
398
|
print(R)
|
|
368
399
|
```
|
|
369
|
-
|
|
400
|
+
|
|
401
|
+
**Example - AsyncWEBS:**
|
|
402
|
+
|
|
370
403
|
```python
|
|
371
404
|
import asyncio
|
|
372
405
|
import logging
|
|
@@ -406,17 +439,18 @@ logging.basicConfig(level=logging.DEBUG)
|
|
|
406
439
|
|
|
407
440
|
await main()
|
|
408
441
|
```
|
|
409
|
-
It is important to note that the WEBS and AsyncWEBS classes should always be used as a context manager (with statement).
|
|
410
|
-
This ensures proper resource management and cleanup, as the context manager will automatically handle opening and closing the HTTP client connection.
|
|
411
442
|
|
|
412
|
-
|
|
443
|
+
**Important Note:** The `WEBS` and `AsyncWEBS` classes should always be used as a context manager (with statement). This ensures proper resource management and cleanup, as the context manager will automatically handle opening and closing the HTTP client connection.
|
|
413
444
|
|
|
414
|
-
Exceptions
|
|
415
|
-
- `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
445
|
+
## ⚠️ Exceptions
|
|
416
446
|
|
|
417
|
-
|
|
447
|
+
**Exceptions:**
|
|
418
448
|
|
|
419
|
-
|
|
449
|
+
* `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
450
|
+
|
|
451
|
+
## 💻 Usage of WEBS
|
|
452
|
+
|
|
453
|
+
### 1. `text()` - Text Search by DuckDuckGo.com
|
|
420
454
|
|
|
421
455
|
```python
|
|
422
456
|
from webscout import WEBS
|
|
@@ -430,7 +464,7 @@ with WEBS() as WEBS:
|
|
|
430
464
|
print(r)
|
|
431
465
|
```
|
|
432
466
|
|
|
433
|
-
### 2. `answers()` -
|
|
467
|
+
### 2. `answers()` - Instant Answers by DuckDuckGo.com
|
|
434
468
|
|
|
435
469
|
```python
|
|
436
470
|
from webscout import WEBS
|
|
@@ -441,7 +475,7 @@ with WEBS() as WEBS:
|
|
|
441
475
|
print(r)
|
|
442
476
|
```
|
|
443
477
|
|
|
444
|
-
### 3. `images()` -
|
|
478
|
+
### 3. `images()` - Image Search by DuckDuckGo.com
|
|
445
479
|
|
|
446
480
|
```python
|
|
447
481
|
from webscout import WEBS
|
|
@@ -463,7 +497,7 @@ with WEBS() as WEBS:
|
|
|
463
497
|
print(r)
|
|
464
498
|
```
|
|
465
499
|
|
|
466
|
-
### 4. `videos()` -
|
|
500
|
+
### 4. `videos()` - Video Search by DuckDuckGo.com
|
|
467
501
|
|
|
468
502
|
```python
|
|
469
503
|
from webscout import WEBS
|
|
@@ -484,7 +518,7 @@ with WEBS() as WEBS:
|
|
|
484
518
|
print(r)
|
|
485
519
|
```
|
|
486
520
|
|
|
487
|
-
### 5. `news()` -
|
|
521
|
+
### 5. `news()` - News Search by DuckDuckGo.com
|
|
488
522
|
|
|
489
523
|
```python
|
|
490
524
|
from webscout import WEBS
|
|
@@ -531,7 +565,7 @@ print(formatted_headlines)
|
|
|
531
565
|
|
|
532
566
|
```
|
|
533
567
|
|
|
534
|
-
### 6. `maps()` -
|
|
568
|
+
### 6. `maps()` - Map Search by DuckDuckGo.com
|
|
535
569
|
|
|
536
570
|
```python
|
|
537
571
|
from webscout import WEBS
|
|
@@ -542,7 +576,7 @@ with WEBS() as WEBS:
|
|
|
542
576
|
print(r)
|
|
543
577
|
```
|
|
544
578
|
|
|
545
|
-
### 7. `translate()` -
|
|
579
|
+
### 7. `translate()` - Translation by DuckDuckGo.com
|
|
546
580
|
|
|
547
581
|
```python
|
|
548
582
|
from webscout import WEBS
|
|
@@ -554,7 +588,7 @@ with WEBS() as WEBS:
|
|
|
554
588
|
print(r)
|
|
555
589
|
```
|
|
556
590
|
|
|
557
|
-
### 8. `suggestions()` -
|
|
591
|
+
### 8. `suggestions()` - Suggestions by DuckDuckGo.com
|
|
558
592
|
|
|
559
593
|
```python
|
|
560
594
|
from webscout import WEBS
|
|
@@ -565,8 +599,8 @@ with WEBS() as WEBS:
|
|
|
565
599
|
print(r)
|
|
566
600
|
```
|
|
567
601
|
|
|
602
|
+
## 🌐 WEBSX - Another Web Search Tool
|
|
568
603
|
|
|
569
|
-
## usage of WEBSX -- Another Websearch thing
|
|
570
604
|
```python
|
|
571
605
|
from webscout import WEBSX
|
|
572
606
|
s = "Python development tools"
|
|
@@ -575,16 +609,18 @@ result = WEBSX(s)
|
|
|
575
609
|
|
|
576
610
|
print(result)
|
|
577
611
|
```
|
|
578
|
-
|
|
612
|
+
|
|
613
|
+
## 🎭 ALL Acts
|
|
614
|
+
|
|
579
615
|
<details>
|
|
580
|
-
<summary>
|
|
616
|
+
<summary>Expand</summary>
|
|
581
617
|
|
|
582
618
|
## Webscout Supported Acts:
|
|
583
619
|
|
|
584
620
|
1. Free-mode
|
|
585
621
|
2. Linux Terminal
|
|
586
622
|
3. English Translator and Improver
|
|
587
|
-
4. `position` Interviewer
|
|
623
|
+
4. `position` Interviewer
|
|
588
624
|
5. JavaScript Console
|
|
589
625
|
6. Excel Sheet
|
|
590
626
|
7. English Pronunciation Helper
|
|
@@ -742,7 +778,7 @@ print(result)
|
|
|
742
778
|
159. Wikipedia page
|
|
743
779
|
160. Japanese Kanji quiz machine
|
|
744
780
|
161. note-taking assistant
|
|
745
|
-
162. `language` Literary Critic
|
|
781
|
+
162. `language` Literary Critic
|
|
746
782
|
163. Cheap Travel Ticket Advisor
|
|
747
783
|
164. DALL-E
|
|
748
784
|
165. MathBot
|
|
@@ -832,8 +868,10 @@ print(result)
|
|
|
832
868
|
___
|
|
833
869
|
</details>
|
|
834
870
|
|
|
835
|
-
###
|
|
836
|
-
|
|
871
|
+
### 🖼️ Text to Images - DeepInfraImager, PollinationsAI, BlackboxAIImager, AiForceimagger, NexraImager, HFimager, ArtbitImager
|
|
872
|
+
|
|
873
|
+
**Every TTI provider has the same usage code, you just need to change the import.**
|
|
874
|
+
|
|
837
875
|
```python
|
|
838
876
|
from webscout import DeepInfraImager
|
|
839
877
|
bot = DeepInfraImager()
|
|
@@ -841,7 +879,8 @@ resp = bot.generate("AI-generated image - webscout", 1)
|
|
|
841
879
|
print(bot.save(resp))
|
|
842
880
|
```
|
|
843
881
|
|
|
844
|
-
### Text to
|
|
882
|
+
### 🗣️ Text to Speech - Voicepods, StreamElements
|
|
883
|
+
|
|
845
884
|
```python
|
|
846
885
|
from webscout import Voicepods
|
|
847
886
|
voicepods = Voicepods()
|
|
@@ -854,13 +893,15 @@ print("Playing audio...")
|
|
|
854
893
|
voicepods.play_audio(audio_file)
|
|
855
894
|
```
|
|
856
895
|
|
|
857
|
-
###
|
|
896
|
+
### 💬 `Duckchat` - Chat with LLM
|
|
897
|
+
|
|
858
898
|
```python
|
|
859
899
|
from webscout import WEBS as w
|
|
860
900
|
R = w().chat("Who are you", model='gpt-4o-mini') # GPT-3.5 Turbo, mixtral-8x7b, llama-3-70b, claude-3-haiku, gpt-4o-mini
|
|
861
901
|
print(R)
|
|
862
902
|
```
|
|
863
|
-
|
|
903
|
+
|
|
904
|
+
### 🔎 `PhindSearch` - Search using Phind.com
|
|
864
905
|
|
|
865
906
|
```python
|
|
866
907
|
from webscout import PhindSearch
|
|
@@ -878,7 +919,9 @@ response = ph.ask(prompt)
|
|
|
878
919
|
message = ph.get_message(response)
|
|
879
920
|
print(message)
|
|
880
921
|
```
|
|
881
|
-
|
|
922
|
+
|
|
923
|
+
**Using phindv2:**
|
|
924
|
+
|
|
882
925
|
```python
|
|
883
926
|
from webscout import Phindv2
|
|
884
927
|
|
|
@@ -896,7 +939,7 @@ message = ph.get_message(response)
|
|
|
896
939
|
print(message)
|
|
897
940
|
```
|
|
898
941
|
|
|
899
|
-
### `Gemini` -
|
|
942
|
+
### ♊ `Gemini` - Search with Google Gemini
|
|
900
943
|
|
|
901
944
|
```python
|
|
902
945
|
import webscout
|
|
@@ -914,7 +957,9 @@ gemini = GEMINI(cookie_file=COOKIE_FILE, proxy=PROXIES)
|
|
|
914
957
|
response = gemini.chat("websearch about HelpingAI and who is its developer")
|
|
915
958
|
print(response)
|
|
916
959
|
```
|
|
917
|
-
|
|
960
|
+
|
|
961
|
+
### 💬 `YEPCHAT`
|
|
962
|
+
|
|
918
963
|
```python
|
|
919
964
|
from webscout import YEPCHAT
|
|
920
965
|
ai = YEPCHAT(Tools=False)
|
|
@@ -952,7 +997,9 @@ response = ai.chat(input(">>> "))
|
|
|
952
997
|
for chunk in response:
|
|
953
998
|
print(chunk, end="", flush=True)
|
|
954
999
|
```
|
|
955
|
-
|
|
1000
|
+
|
|
1001
|
+
### ⬛ `BlackBox` - Search/Chat with BlackBox
|
|
1002
|
+
|
|
956
1003
|
```python
|
|
957
1004
|
from webscout import BLACKBOXAI
|
|
958
1005
|
from rich import print
|
|
@@ -983,7 +1030,9 @@ while True:
|
|
|
983
1030
|
r = ai.chat(prompt)
|
|
984
1031
|
print(r)
|
|
985
1032
|
```
|
|
986
|
-
|
|
1033
|
+
|
|
1034
|
+
### ❓ `PERPLEXITY` - Search with PERPLEXITY
|
|
1035
|
+
|
|
987
1036
|
```python
|
|
988
1037
|
from webscout import Perplexity
|
|
989
1038
|
from rich import print
|
|
@@ -996,7 +1045,9 @@ for chunk in response:
|
|
|
996
1045
|
|
|
997
1046
|
perplexity.close()
|
|
998
1047
|
```
|
|
999
|
-
|
|
1048
|
+
|
|
1049
|
+
### 🤖 `Meta AI` - Chat with Meta AI
|
|
1050
|
+
|
|
1000
1051
|
```python
|
|
1001
1052
|
from webscout import Meta
|
|
1002
1053
|
from rich import print
|
|
@@ -1019,7 +1070,8 @@ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
|
|
|
1019
1070
|
# Text prompt with web search
|
|
1020
1071
|
response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
|
|
1021
1072
|
print(response["message"]) # Access the text message
|
|
1022
|
-
print("Sources:", response["sources"]) # Access sources (if
|
|
1073
|
+
print("Sources:", response["sources"]) # Access sources (if ```python
|
|
1074
|
+
any)
|
|
1023
1075
|
|
|
1024
1076
|
# Image generation
|
|
1025
1077
|
response = meta_ai.ask("Create an image of a cat wearing a hat.")
|
|
@@ -1028,7 +1080,9 @@ for media in response["media"]:
|
|
|
1028
1080
|
print(media["url"]) # Access image URLs
|
|
1029
1081
|
|
|
1030
1082
|
```
|
|
1031
|
-
|
|
1083
|
+
|
|
1084
|
+
### `KOBOLDAI`
|
|
1085
|
+
|
|
1032
1086
|
```python
|
|
1033
1087
|
from webscout import KOBOLDAI
|
|
1034
1088
|
|
|
@@ -1047,7 +1101,8 @@ print(message)
|
|
|
1047
1101
|
|
|
1048
1102
|
```
|
|
1049
1103
|
|
|
1050
|
-
### `Reka` -
|
|
1104
|
+
### `Reka` - Chat with Reka
|
|
1105
|
+
|
|
1051
1106
|
```python
|
|
1052
1107
|
from webscout import REKA
|
|
1053
1108
|
|
|
@@ -1058,7 +1113,8 @@ response_str = a.chat(prompt)
|
|
|
1058
1113
|
print(response_str)
|
|
1059
1114
|
```
|
|
1060
1115
|
|
|
1061
|
-
### `Cohere` -
|
|
1116
|
+
### `Cohere` - Chat with Cohere
|
|
1117
|
+
|
|
1062
1118
|
```python
|
|
1063
1119
|
from webscout import Cohere
|
|
1064
1120
|
|
|
@@ -1069,12 +1125,9 @@ response_str = a.chat(prompt)
|
|
|
1069
1125
|
print(response_str)
|
|
1070
1126
|
```
|
|
1071
1127
|
|
|
1128
|
+
### `BasedGPT` - Chat with GPT
|
|
1072
1129
|
|
|
1073
|
-
|
|
1074
|
-
Usage code similar to other proviers
|
|
1075
|
-
|
|
1076
|
-
### `BasedGPT` - chat with GPT
|
|
1077
|
-
```py
|
|
1130
|
+
```python
|
|
1078
1131
|
from webscout import BasedGPT
|
|
1079
1132
|
|
|
1080
1133
|
# Initialize the BasedGPT provider
|
|
@@ -1094,14 +1147,16 @@ response = basedgpt.chat(prompt)
|
|
|
1094
1147
|
# Print the AI's response
|
|
1095
1148
|
print(response)
|
|
1096
1149
|
```
|
|
1097
|
-
|
|
1150
|
+
|
|
1151
|
+
### `DeepSeek` - Chat with DeepSeek
|
|
1152
|
+
|
|
1098
1153
|
```python
|
|
1099
1154
|
from webscout import DeepSeek
|
|
1100
1155
|
from rich import print
|
|
1101
1156
|
|
|
1102
1157
|
ai = DeepSeek(
|
|
1103
1158
|
is_conversation=True,
|
|
1104
|
-
api_key='cookie,
|
|
1159
|
+
api_key='cookie',
|
|
1105
1160
|
max_tokens=800,
|
|
1106
1161
|
timeout=30,
|
|
1107
1162
|
intro=None,
|
|
@@ -1120,7 +1175,9 @@ prompt = "Tell me about india"
|
|
|
1120
1175
|
r = ai.chat(prompt)
|
|
1121
1176
|
print(r)
|
|
1122
1177
|
```
|
|
1178
|
+
|
|
1123
1179
|
### `Deepinfra`
|
|
1180
|
+
|
|
1124
1181
|
```python
|
|
1125
1182
|
from webscout import DeepInfra
|
|
1126
1183
|
|
|
@@ -1146,29 +1203,9 @@ message = ai.get_message(response)
|
|
|
1146
1203
|
print(message)
|
|
1147
1204
|
```
|
|
1148
1205
|
|
|
1149
|
-
### `Deepinfra` - VLM
|
|
1150
|
-
```python
|
|
1151
|
-
from webscout.Provider import VLM
|
|
1152
|
-
|
|
1153
|
-
# Load your image
|
|
1154
|
-
image_path = r"C:\Users\koula\OneDrive\Desktop\Webscout\photo_2024-03-25_19-23-40.jpg"
|
|
1155
1206
|
|
|
1156
|
-
|
|
1157
|
-
image_base64 = vlm_instance.encode_image_to_base64(image_path)
|
|
1158
|
-
|
|
1159
|
-
prompt = {
|
|
1160
|
-
"content": "What is in this image?",
|
|
1161
|
-
"image": image_base64
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
# Generate a response
|
|
1165
|
-
response = vlm_instance.chat(prompt)
|
|
1166
|
-
print(response)
|
|
1167
|
-
|
|
1168
|
-
```
|
|
1207
|
+
### `GROQ`
|
|
1169
1208
|
|
|
1170
|
-
|
|
1171
|
-
### GROQ
|
|
1172
1209
|
```python
|
|
1173
1210
|
from webscout import GROQ
|
|
1174
1211
|
ai = GROQ(api_key="")
|
|
@@ -1254,7 +1291,8 @@ print(response_search)
|
|
|
1254
1291
|
|
|
1255
1292
|
```
|
|
1256
1293
|
|
|
1257
|
-
### LLama 70b -
|
|
1294
|
+
### `LLama 70b` - Chat with Meta's Llama 3 70b
|
|
1295
|
+
|
|
1258
1296
|
```python
|
|
1259
1297
|
|
|
1260
1298
|
from webscout import LLAMA
|
|
@@ -1264,13 +1302,17 @@ llama = LLAMA()
|
|
|
1264
1302
|
r = llama.chat("What is the meaning of life?")
|
|
1265
1303
|
print(r)
|
|
1266
1304
|
```
|
|
1267
|
-
|
|
1305
|
+
|
|
1306
|
+
### `AndiSearch`
|
|
1307
|
+
|
|
1268
1308
|
```python
|
|
1269
1309
|
from webscout import AndiSearch
|
|
1270
1310
|
a = AndiSearch()
|
|
1271
1311
|
print(a.chat("HelpingAI-9B"))
|
|
1272
1312
|
```
|
|
1273
|
-
|
|
1313
|
+
|
|
1314
|
+
### 📞 Function Calling (Beta)
|
|
1315
|
+
|
|
1274
1316
|
```python
|
|
1275
1317
|
import json
|
|
1276
1318
|
import logging
|
|
@@ -1383,9 +1425,13 @@ if "error" not in function_call_data:
|
|
|
1383
1425
|
else:
|
|
1384
1426
|
print(f"Error: {function_call_data['error']}")
|
|
1385
1427
|
```
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1428
|
+
|
|
1429
|
+
### LLAMA3, pizzagpt, RUBIKSAI, Koala, Darkai, AI4Chat, Farfalle, PIAI, Felo, XDASH, Julius, YouChat, YEPCHAT, Cloudflare, TurboSeek, Editee, AI21, Chatify, Cerebras, X0GPT, Lepton, GEMINIAPI, Cleeai, Elmo, Genspark, Upstage, Free2GPT, Bing, DiscordRocks, GPTWeb, AIGameIO, LlamaTutor, PromptRefine, AIUncensored, TutorAI, Bixin, ChatGPTES, Bagoodex, ChatHub, AmigoChat
|
|
1430
|
+
|
|
1431
|
+
Code is similar to other providers.
|
|
1432
|
+
|
|
1433
|
+
### `LLM`
|
|
1434
|
+
|
|
1389
1435
|
```python
|
|
1390
1436
|
from webscout.LLM import LLM
|
|
1391
1437
|
|
|
@@ -1412,7 +1458,7 @@ while True:
|
|
|
1412
1458
|
print("AI: ", response)
|
|
1413
1459
|
```
|
|
1414
1460
|
|
|
1415
|
-
## Local-LLM
|
|
1461
|
+
## 💻 Local-LLM
|
|
1416
1462
|
|
|
1417
1463
|
Webscout can now run GGUF models locally. You can download and run your favorite models with minimal configuration.
|
|
1418
1464
|
|
|
@@ -1439,7 +1485,8 @@ thread = Thread(model, formats.phi3)
|
|
|
1439
1485
|
thread.interact()
|
|
1440
1486
|
```
|
|
1441
1487
|
|
|
1442
|
-
## Local-rawdog
|
|
1488
|
+
## 🐶 Local-rawdog
|
|
1489
|
+
|
|
1443
1490
|
Webscout's local raw-dog feature allows you to run Python scripts within your terminal prompt.
|
|
1444
1491
|
|
|
1445
1492
|
**Example:**
|
|
@@ -1554,9 +1601,9 @@ gguf.convert(
|
|
|
1554
1601
|
)
|
|
1555
1602
|
```
|
|
1556
1603
|
|
|
1557
|
-
## Autollama
|
|
1604
|
+
## 🤖 Autollama
|
|
1558
1605
|
|
|
1559
|
-
Webscout's `autollama` utility
|
|
1606
|
+
Webscout's `autollama` utility downloads a model from Hugging Face and then automatically makes it Ollama-ready.
|
|
1560
1607
|
|
|
1561
1608
|
```python
|
|
1562
1609
|
from webscout import autollama
|
|
@@ -1585,10 +1632,9 @@ autollama.main(model_path, gguf_file)
|
|
|
1585
1632
|
* The `model_path` in `autollama` is the Hugging Face model ID, and `gguf_file` is the GGUF file ID.
|
|
1586
1633
|
|
|
1587
1634
|
|
|
1635
|
+
## 🌐 `Webai` - Terminal GPT and an Open Interpreter
|
|
1588
1636
|
|
|
1589
|
-
|
|
1590
|
-
```
|
|
1591
|
-
```shell
|
|
1637
|
+
```bash
|
|
1592
1638
|
python -m webscout.webai webai --provider "phind" --rawdog
|
|
1593
1639
|
```
|
|
1594
1640
|
|
|
@@ -1602,10 +1648,30 @@ python -m webscout.webai webai --provider "phind" --rawdog
|
|
|
1602
1648
|
|
|
1603
1649
|
<div align="center">
|
|
1604
1650
|
<!-- Replace `#` with your actual links -->
|
|
1605
|
-
<a href="https://youtube.com/@OEvortex"
|
|
1606
|
-
|
|
1651
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
1652
|
+
</div>
|
|
1653
|
+
<div align="center">
|
|
1654
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
1655
|
+
</div>
|
|
1607
1656
|
<div align="center">
|
|
1608
|
-
<a href="https://
|
|
1657
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
1609
1658
|
</div>
|
|
1610
1659
|
|
|
1660
|
+
## 🤝 Contributing
|
|
1661
|
+
|
|
1662
|
+
Contributions are welcome! If you'd like to contribute to Webscout, please follow these steps:
|
|
1663
|
+
|
|
1664
|
+
1. Fork the repository.
|
|
1665
|
+
2. Create a new branch for your feature or bug fix.
|
|
1666
|
+
3. Make your changes and commit them with descriptive messages.
|
|
1667
|
+
4. Push your branch to your forked repository.
|
|
1668
|
+
5. Submit a pull request to the main repository.
|
|
1669
|
+
|
|
1670
|
+
## 📜 License
|
|
1671
|
+
|
|
1672
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
1673
|
+
|
|
1674
|
+
## 🙏 Acknowledgments
|
|
1611
1675
|
|
|
1676
|
+
* All the amazing developers who have contributed to the project!
|
|
1677
|
+
* The open-source community for their support and inspiration.
|