webscout 5.7__py3-none-any.whl → 5.9__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 +76 -2
- webscout/Agents/Onlinesearcher.py +123 -115
- webscout/Provider/Amigo.py +265 -0
- webscout/Provider/ChatGPTES.py +239 -0
- webscout/Provider/Deepinfra.py +1 -1
- webscout/Provider/TTI/WebSimAI.py +142 -0
- webscout/Provider/TTI/__init__.py +5 -1
- webscout/Provider/TTI/aiforce.py +36 -13
- webscout/Provider/TTI/amigo.py +148 -0
- webscout/Provider/TTI/artbit.py +141 -0
- webscout/Provider/TTI/huggingface.py +155 -0
- webscout/Provider/TTS/__init__.py +2 -1
- webscout/Provider/TTS/parler.py +108 -0
- webscout/Provider/__init__.py +18 -0
- webscout/Provider/bixin.py +264 -0
- webscout/Provider/genspark.py +46 -43
- webscout/Provider/learnfastai.py +253 -0
- webscout/Provider/llamatutor.py +222 -0
- webscout/Provider/prefind.py +232 -0
- webscout/Provider/promptrefine.py +191 -0
- webscout/Provider/tutorai.py +354 -0
- webscout/Provider/twitterclone.py +260 -0
- webscout/__init__.py +1 -0
- webscout/version.py +1 -1
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/METADATA +184 -89
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/RECORD +30 -16
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/LICENSE.md +0 -0
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/WHEEL +0 -0
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/entry_points.txt +0 -0
- {webscout-5.7.dist-info → webscout-5.9.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.9
|
|
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
|
|
@@ -55,6 +55,7 @@ Requires-Dist: cloudscraper
|
|
|
55
55
|
Requires-Dist: emoji
|
|
56
56
|
Requires-Dist: openai
|
|
57
57
|
Requires-Dist: prompt-toolkit
|
|
58
|
+
Requires-Dist: fake-useragent
|
|
58
59
|
Provides-Extra: dev
|
|
59
60
|
Requires-Dist: ruff >=0.1.6 ; extra == 'dev'
|
|
60
61
|
Requires-Dist: pytest >=7.4.2 ; extra == 'dev'
|
|
@@ -74,32 +75,53 @@ Requires-Dist: huggingface-hub[cli] ; extra == 'local'
|
|
|
74
75
|
|
|
75
76
|
<div align="center">
|
|
76
77
|
<!-- Replace `#` with your actual links -->
|
|
77
|
-
<a href="https://youtube.com/@OEvortex"
|
|
78
|
-
|
|
78
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
79
|
+
</div>
|
|
80
|
+
<div align="center">
|
|
81
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
82
|
+
</div>
|
|
79
83
|
<div align="center">
|
|
80
|
-
<a href="https://
|
|
84
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
81
85
|
</div>
|
|
82
86
|
|
|
83
87
|
|
|
84
88
|
|
|
85
89
|
|
|
86
|
-
# WEBSCOUT
|
|
90
|
+
# WEBSCOUT 🕵️️
|
|
87
91
|
</div>
|
|
92
|
+
|
|
88
93
|
<p align="center">
|
|
94
|
+
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!
|
|
95
|
+
</p>
|
|
96
|
+
|
|
89
97
|
<div align="center">
|
|
90
98
|
<img src="https://img.shields.io/badge/WebScout-API-blue?style=for-the-badge&logo=WebScout" alt="WebScout API Badge">
|
|
99
|
+
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
100
|
+
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
91
101
|
</div>
|
|
92
|
-
<a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
|
|
93
|
-
<a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
|
|
94
102
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
103
|
+
## 🚀 Features
|
|
104
|
+
* **Comprehensive Search:** Leverage Google, DuckDuckGo, and Phind.com for diverse search results.
|
|
105
|
+
* **AI Powerhouse:** Access and interact with various AI models, including OpenAI, Cohere, and more.
|
|
106
|
+
* **YouTube Toolkit:** Transcribe YouTube videos effortlessly and download audio/video content.
|
|
107
|
+
* **Tempmail & Temp Number:** Generate temporary email addresses and phone numbers for enhanced privacy.
|
|
108
|
+
* **Text-to-Speech (TTS):** Convert text into natural-sounding speech using various TTS providers.
|
|
109
|
+
* **WebAI:** Experience the power of terminal-based GPT and an open interpreter for code execution and more.
|
|
110
|
+
* **Offline LLMs:** Utilize powerful language models offline with GGUF support.
|
|
111
|
+
* **Extensive Provider Ecosystem:** Explore a vast collection of providers, including Poe, BasedGPT, DeepSeek, and many others.
|
|
112
|
+
* **Local LLM Execution:** Run GGUF models locally with minimal configuration.
|
|
113
|
+
* **Rawdog Scripting:** Execute Python scripts directly within your terminal using the `rawdog` feature.
|
|
114
|
+
* **GGUF Conversion & Quantization:** Convert and quantize Hugging Face models to GGUF format.
|
|
115
|
+
* **Autollama:** Download Hugging Face models and automatically convert them for Ollama compatibility.
|
|
116
|
+
* **Function Calling (Beta):** Experiment with function calling capabilities for enhanced AI interactions.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## ⚙️ Installation
|
|
99
120
|
```python
|
|
100
121
|
pip install -U webscout
|
|
101
122
|
```
|
|
102
|
-
|
|
123
|
+
|
|
124
|
+
## 🖥️ CLI Usage
|
|
103
125
|
|
|
104
126
|
```python3
|
|
105
127
|
python -m webscout --help
|
|
@@ -117,13 +139,11 @@ python -m webscout --help
|
|
|
117
139
|
| python -m webscout version | A command-line interface command that prints and returns the version of the program. |
|
|
118
140
|
| python -m webscout videos -k Text | CLI function to perform a videos search using DuckDuckGo API. |
|
|
119
141
|
|
|
142
|
+
[Go To TOP](#webscout-️)
|
|
120
143
|
|
|
121
|
-
|
|
122
|
-
[Go To TOP](#TOP)
|
|
123
|
-
|
|
124
|
-
## Regions
|
|
144
|
+
## 🌍 Regions
|
|
125
145
|
<details>
|
|
126
|
-
<summary>
|
|
146
|
+
<summary>Expand</summary>
|
|
127
147
|
|
|
128
148
|
xa-ar for Arabia
|
|
129
149
|
xa-en for Arabia (en)
|
|
@@ -198,8 +218,9 @@ python -m webscout --help
|
|
|
198
218
|
</details>
|
|
199
219
|
|
|
200
220
|
|
|
201
|
-
[Go To TOP](#
|
|
202
|
-
|
|
221
|
+
[Go To TOP](#webscout-️)
|
|
222
|
+
|
|
223
|
+
## ⬇️ YTdownloader
|
|
203
224
|
|
|
204
225
|
```python
|
|
205
226
|
from os import rename, getcwd
|
|
@@ -223,23 +244,25 @@ if __name__ == "__main__":
|
|
|
223
244
|
download_video("https://www.youtube.com/watch?v=c0tMvzB0OKw")
|
|
224
245
|
```
|
|
225
246
|
|
|
226
|
-
## Weather
|
|
227
|
-
|
|
247
|
+
## ☀️ Weather
|
|
248
|
+
|
|
249
|
+
### 1. Weather
|
|
228
250
|
```python
|
|
229
251
|
from webscout import weather as w
|
|
230
252
|
weather = w.get("Qazigund")
|
|
231
253
|
w.print_weather(weather)
|
|
232
254
|
```
|
|
233
|
-
|
|
255
|
+
|
|
256
|
+
### 2. Weather ASCII
|
|
234
257
|
```python
|
|
235
258
|
from webscout import weather_ascii as w
|
|
236
259
|
weather = w.get("Qazigund")
|
|
237
260
|
print(weather)
|
|
238
261
|
```
|
|
239
262
|
|
|
240
|
-
## Tempmail and Temp
|
|
263
|
+
## ✉️ Tempmail and 📞 Temp Number
|
|
241
264
|
|
|
242
|
-
### Temp
|
|
265
|
+
### Temp Number
|
|
243
266
|
```python
|
|
244
267
|
from rich.console import Console
|
|
245
268
|
from webscout import tempid
|
|
@@ -274,6 +297,7 @@ if __name__ == "__main__":
|
|
|
274
297
|
main()
|
|
275
298
|
|
|
276
299
|
```
|
|
300
|
+
|
|
277
301
|
### Tempmail
|
|
278
302
|
```python
|
|
279
303
|
import asyncio
|
|
@@ -323,8 +347,12 @@ if __name__ == '__main__':
|
|
|
323
347
|
asyncio.run(main())
|
|
324
348
|
```
|
|
325
349
|
|
|
326
|
-
## Transcriber
|
|
327
|
-
|
|
350
|
+
## 📝 Transcriber
|
|
351
|
+
|
|
352
|
+
The `transcriber` function in Webscout is a handy tool that transcribes YouTube videos.
|
|
353
|
+
|
|
354
|
+
**Example:**
|
|
355
|
+
|
|
328
356
|
```python
|
|
329
357
|
from webscout import YTTranscriber
|
|
330
358
|
yt = YTTranscriber()
|
|
@@ -334,7 +362,8 @@ transcript = yt.get_transcript(video_url, languages=None)
|
|
|
334
362
|
print(transcript)
|
|
335
363
|
```
|
|
336
364
|
|
|
337
|
-
## GoogleS
|
|
365
|
+
## 🔍 GoogleS (formerly DWEBS)
|
|
366
|
+
|
|
338
367
|
```python
|
|
339
368
|
from webscout import GoogleS
|
|
340
369
|
from rich import print
|
|
@@ -343,7 +372,9 @@ results = searcher.search("HelpingAI-9B", max_results=20, extract_text=False, ma
|
|
|
343
372
|
for result in results:
|
|
344
373
|
print(result)
|
|
345
374
|
```
|
|
375
|
+
|
|
346
376
|
### BingS
|
|
377
|
+
|
|
347
378
|
```python
|
|
348
379
|
from webscout import BingS
|
|
349
380
|
from rich import print
|
|
@@ -353,19 +384,25 @@ for result in results:
|
|
|
353
384
|
print(result)
|
|
354
385
|
```
|
|
355
386
|
|
|
387
|
+
## 🦆 WEBS and AsyncWEBS
|
|
388
|
+
|
|
389
|
+
The `WEBS` and `AsyncWEBS` classes are used to retrieve search results from DuckDuckGo.com.
|
|
390
|
+
|
|
391
|
+
To use the `AsyncWEBS` class, you can perform asynchronous operations using Python's `asyncio` library.
|
|
392
|
+
|
|
393
|
+
To initialize an instance of the `WEBS` or `AsyncWEBS` classes, you can provide the following optional arguments:
|
|
356
394
|
|
|
357
|
-
|
|
358
|
-
To use the AsyncWEBS class, you can perform asynchronous operations using Python's asyncio library.
|
|
359
|
-
To initialize an instance of the WEBS or AsyncWEBS classes, you can provide the following optional arguments:
|
|
395
|
+
**Example - WEBS:**
|
|
360
396
|
|
|
361
|
-
Here is an example of initializing the WEBS class:
|
|
362
397
|
```python
|
|
363
398
|
from webscout import WEBS
|
|
364
399
|
|
|
365
400
|
R = WEBS().text("python programming", max_results=5)
|
|
366
401
|
print(R)
|
|
367
402
|
```
|
|
368
|
-
|
|
403
|
+
|
|
404
|
+
**Example - AsyncWEBS:**
|
|
405
|
+
|
|
369
406
|
```python
|
|
370
407
|
import asyncio
|
|
371
408
|
import logging
|
|
@@ -405,17 +442,18 @@ logging.basicConfig(level=logging.DEBUG)
|
|
|
405
442
|
|
|
406
443
|
await main()
|
|
407
444
|
```
|
|
408
|
-
It is important to note that the WEBS and AsyncWEBS classes should always be used as a context manager (with statement).
|
|
409
|
-
This ensures proper resource management and cleanup, as the context manager will automatically handle opening and closing the HTTP client connection.
|
|
410
445
|
|
|
411
|
-
|
|
446
|
+
**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.
|
|
447
|
+
|
|
448
|
+
## ⚠️ Exceptions
|
|
412
449
|
|
|
413
|
-
Exceptions
|
|
414
|
-
- `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
450
|
+
**Exceptions:**
|
|
415
451
|
|
|
416
|
-
|
|
452
|
+
* `WebscoutE`: Raised when there is a generic exception during the API request.
|
|
417
453
|
|
|
418
|
-
|
|
454
|
+
## 💻 Usage of WEBS
|
|
455
|
+
|
|
456
|
+
### 1. `text()` - Text Search by DuckDuckGo.com
|
|
419
457
|
|
|
420
458
|
```python
|
|
421
459
|
from webscout import WEBS
|
|
@@ -429,7 +467,7 @@ with WEBS() as WEBS:
|
|
|
429
467
|
print(r)
|
|
430
468
|
```
|
|
431
469
|
|
|
432
|
-
### 2. `answers()` -
|
|
470
|
+
### 2. `answers()` - Instant Answers by DuckDuckGo.com
|
|
433
471
|
|
|
434
472
|
```python
|
|
435
473
|
from webscout import WEBS
|
|
@@ -440,7 +478,7 @@ with WEBS() as WEBS:
|
|
|
440
478
|
print(r)
|
|
441
479
|
```
|
|
442
480
|
|
|
443
|
-
### 3. `images()` -
|
|
481
|
+
### 3. `images()` - Image Search by DuckDuckGo.com
|
|
444
482
|
|
|
445
483
|
```python
|
|
446
484
|
from webscout import WEBS
|
|
@@ -462,7 +500,7 @@ with WEBS() as WEBS:
|
|
|
462
500
|
print(r)
|
|
463
501
|
```
|
|
464
502
|
|
|
465
|
-
### 4. `videos()` -
|
|
503
|
+
### 4. `videos()` - Video Search by DuckDuckGo.com
|
|
466
504
|
|
|
467
505
|
```python
|
|
468
506
|
from webscout import WEBS
|
|
@@ -483,7 +521,7 @@ with WEBS() as WEBS:
|
|
|
483
521
|
print(r)
|
|
484
522
|
```
|
|
485
523
|
|
|
486
|
-
### 5. `news()` -
|
|
524
|
+
### 5. `news()` - News Search by DuckDuckGo.com
|
|
487
525
|
|
|
488
526
|
```python
|
|
489
527
|
from webscout import WEBS
|
|
@@ -530,7 +568,7 @@ print(formatted_headlines)
|
|
|
530
568
|
|
|
531
569
|
```
|
|
532
570
|
|
|
533
|
-
### 6. `maps()` -
|
|
571
|
+
### 6. `maps()` - Map Search by DuckDuckGo.com
|
|
534
572
|
|
|
535
573
|
```python
|
|
536
574
|
from webscout import WEBS
|
|
@@ -541,7 +579,7 @@ with WEBS() as WEBS:
|
|
|
541
579
|
print(r)
|
|
542
580
|
```
|
|
543
581
|
|
|
544
|
-
### 7. `translate()` -
|
|
582
|
+
### 7. `translate()` - Translation by DuckDuckGo.com
|
|
545
583
|
|
|
546
584
|
```python
|
|
547
585
|
from webscout import WEBS
|
|
@@ -553,7 +591,7 @@ with WEBS() as WEBS:
|
|
|
553
591
|
print(r)
|
|
554
592
|
```
|
|
555
593
|
|
|
556
|
-
### 8. `suggestions()` -
|
|
594
|
+
### 8. `suggestions()` - Suggestions by DuckDuckGo.com
|
|
557
595
|
|
|
558
596
|
```python
|
|
559
597
|
from webscout import WEBS
|
|
@@ -564,8 +602,8 @@ with WEBS() as WEBS:
|
|
|
564
602
|
print(r)
|
|
565
603
|
```
|
|
566
604
|
|
|
605
|
+
## 🌐 WEBSX - Another Web Search Tool
|
|
567
606
|
|
|
568
|
-
## usage of WEBSX -- Another Websearch thing
|
|
569
607
|
```python
|
|
570
608
|
from webscout import WEBSX
|
|
571
609
|
s = "Python development tools"
|
|
@@ -574,16 +612,18 @@ result = WEBSX(s)
|
|
|
574
612
|
|
|
575
613
|
print(result)
|
|
576
614
|
```
|
|
577
|
-
|
|
615
|
+
|
|
616
|
+
## 🎭 ALL Acts
|
|
617
|
+
|
|
578
618
|
<details>
|
|
579
|
-
<summary>
|
|
619
|
+
<summary>Expand</summary>
|
|
580
620
|
|
|
581
621
|
## Webscout Supported Acts:
|
|
582
622
|
|
|
583
623
|
1. Free-mode
|
|
584
624
|
2. Linux Terminal
|
|
585
625
|
3. English Translator and Improver
|
|
586
|
-
4. `position` Interviewer
|
|
626
|
+
4. `position` Interviewer
|
|
587
627
|
5. JavaScript Console
|
|
588
628
|
6. Excel Sheet
|
|
589
629
|
7. English Pronunciation Helper
|
|
@@ -741,7 +781,7 @@ print(result)
|
|
|
741
781
|
159. Wikipedia page
|
|
742
782
|
160. Japanese Kanji quiz machine
|
|
743
783
|
161. note-taking assistant
|
|
744
|
-
162. `language` Literary Critic
|
|
784
|
+
162. `language` Literary Critic
|
|
745
785
|
163. Cheap Travel Ticket Advisor
|
|
746
786
|
164. DALL-E
|
|
747
787
|
165. MathBot
|
|
@@ -831,8 +871,10 @@ print(result)
|
|
|
831
871
|
___
|
|
832
872
|
</details>
|
|
833
873
|
|
|
834
|
-
###
|
|
835
|
-
|
|
874
|
+
### 🖼️ Text to Images - DeepInfraImager, PollinationsAI, BlackboxAIImager, AiForceimagger, NexraImager, HFimager, ArtbitImager
|
|
875
|
+
|
|
876
|
+
**Every TTI provider has the same usage code, you just need to change the import.**
|
|
877
|
+
|
|
836
878
|
```python
|
|
837
879
|
from webscout import DeepInfraImager
|
|
838
880
|
bot = DeepInfraImager()
|
|
@@ -840,7 +882,8 @@ resp = bot.generate("AI-generated image - webscout", 1)
|
|
|
840
882
|
print(bot.save(resp))
|
|
841
883
|
```
|
|
842
884
|
|
|
843
|
-
### Text to
|
|
885
|
+
### 🗣️ Text to Speech - Voicepods, StreamElements
|
|
886
|
+
|
|
844
887
|
```python
|
|
845
888
|
from webscout import Voicepods
|
|
846
889
|
voicepods = Voicepods()
|
|
@@ -853,13 +896,15 @@ print("Playing audio...")
|
|
|
853
896
|
voicepods.play_audio(audio_file)
|
|
854
897
|
```
|
|
855
898
|
|
|
856
|
-
###
|
|
899
|
+
### 💬 `Duckchat` - Chat with LLM
|
|
900
|
+
|
|
857
901
|
```python
|
|
858
902
|
from webscout import WEBS as w
|
|
859
903
|
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
|
|
860
904
|
print(R)
|
|
861
905
|
```
|
|
862
|
-
|
|
906
|
+
|
|
907
|
+
### 🔎 `PhindSearch` - Search using Phind.com
|
|
863
908
|
|
|
864
909
|
```python
|
|
865
910
|
from webscout import PhindSearch
|
|
@@ -877,7 +922,9 @@ response = ph.ask(prompt)
|
|
|
877
922
|
message = ph.get_message(response)
|
|
878
923
|
print(message)
|
|
879
924
|
```
|
|
880
|
-
|
|
925
|
+
|
|
926
|
+
**Using phindv2:**
|
|
927
|
+
|
|
881
928
|
```python
|
|
882
929
|
from webscout import Phindv2
|
|
883
930
|
|
|
@@ -895,7 +942,7 @@ message = ph.get_message(response)
|
|
|
895
942
|
print(message)
|
|
896
943
|
```
|
|
897
944
|
|
|
898
|
-
### `Gemini` -
|
|
945
|
+
### ♊ `Gemini` - Search with Google Gemini
|
|
899
946
|
|
|
900
947
|
```python
|
|
901
948
|
import webscout
|
|
@@ -913,7 +960,9 @@ gemini = GEMINI(cookie_file=COOKIE_FILE, proxy=PROXIES)
|
|
|
913
960
|
response = gemini.chat("websearch about HelpingAI and who is its developer")
|
|
914
961
|
print(response)
|
|
915
962
|
```
|
|
916
|
-
|
|
963
|
+
|
|
964
|
+
### 💬 `YEPCHAT`
|
|
965
|
+
|
|
917
966
|
```python
|
|
918
967
|
from webscout import YEPCHAT
|
|
919
968
|
ai = YEPCHAT(Tools=False)
|
|
@@ -951,7 +1000,9 @@ response = ai.chat(input(">>> "))
|
|
|
951
1000
|
for chunk in response:
|
|
952
1001
|
print(chunk, end="", flush=True)
|
|
953
1002
|
```
|
|
954
|
-
|
|
1003
|
+
|
|
1004
|
+
### ⬛ `BlackBox` - Search/Chat with BlackBox
|
|
1005
|
+
|
|
955
1006
|
```python
|
|
956
1007
|
from webscout import BLACKBOXAI
|
|
957
1008
|
from rich import print
|
|
@@ -982,7 +1033,9 @@ while True:
|
|
|
982
1033
|
r = ai.chat(prompt)
|
|
983
1034
|
print(r)
|
|
984
1035
|
```
|
|
985
|
-
|
|
1036
|
+
|
|
1037
|
+
### ❓ `PERPLEXITY` - Search with PERPLEXITY
|
|
1038
|
+
|
|
986
1039
|
```python
|
|
987
1040
|
from webscout import Perplexity
|
|
988
1041
|
from rich import print
|
|
@@ -995,7 +1048,9 @@ for chunk in response:
|
|
|
995
1048
|
|
|
996
1049
|
perplexity.close()
|
|
997
1050
|
```
|
|
998
|
-
|
|
1051
|
+
|
|
1052
|
+
### 🤖 `Meta AI` - Chat with Meta AI
|
|
1053
|
+
|
|
999
1054
|
```python
|
|
1000
1055
|
from webscout import Meta
|
|
1001
1056
|
from rich import print
|
|
@@ -1018,7 +1073,8 @@ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
|
|
|
1018
1073
|
# Text prompt with web search
|
|
1019
1074
|
response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
|
|
1020
1075
|
print(response["message"]) # Access the text message
|
|
1021
|
-
print("Sources:", response["sources"]) # Access sources (if
|
|
1076
|
+
print("Sources:", response["sources"]) # Access sources (if ```python
|
|
1077
|
+
any)
|
|
1022
1078
|
|
|
1023
1079
|
# Image generation
|
|
1024
1080
|
response = meta_ai.ask("Create an image of a cat wearing a hat.")
|
|
@@ -1027,7 +1083,9 @@ for media in response["media"]:
|
|
|
1027
1083
|
print(media["url"]) # Access image URLs
|
|
1028
1084
|
|
|
1029
1085
|
```
|
|
1030
|
-
|
|
1086
|
+
|
|
1087
|
+
### `KOBOLDAI`
|
|
1088
|
+
|
|
1031
1089
|
```python
|
|
1032
1090
|
from webscout import KOBOLDAI
|
|
1033
1091
|
|
|
@@ -1046,7 +1104,8 @@ print(message)
|
|
|
1046
1104
|
|
|
1047
1105
|
```
|
|
1048
1106
|
|
|
1049
|
-
### `Reka` -
|
|
1107
|
+
### `Reka` - Chat with Reka
|
|
1108
|
+
|
|
1050
1109
|
```python
|
|
1051
1110
|
from webscout import REKA
|
|
1052
1111
|
|
|
@@ -1057,7 +1116,8 @@ response_str = a.chat(prompt)
|
|
|
1057
1116
|
print(response_str)
|
|
1058
1117
|
```
|
|
1059
1118
|
|
|
1060
|
-
### `Cohere` -
|
|
1119
|
+
### `Cohere` - Chat with Cohere
|
|
1120
|
+
|
|
1061
1121
|
```python
|
|
1062
1122
|
from webscout import Cohere
|
|
1063
1123
|
|
|
@@ -1068,12 +1128,13 @@ response_str = a.chat(prompt)
|
|
|
1068
1128
|
print(response_str)
|
|
1069
1129
|
```
|
|
1070
1130
|
|
|
1131
|
+
### `Poe` - Chat with Poe
|
|
1132
|
+
|
|
1133
|
+
Usage code is similar to other providers.
|
|
1071
1134
|
|
|
1072
|
-
### `
|
|
1073
|
-
Usage code similar to other proviers
|
|
1135
|
+
### `BasedGPT` - Chat with GPT
|
|
1074
1136
|
|
|
1075
|
-
|
|
1076
|
-
```py
|
|
1137
|
+
```python
|
|
1077
1138
|
from webscout import BasedGPT
|
|
1078
1139
|
|
|
1079
1140
|
# Initialize the BasedGPT provider
|
|
@@ -1093,14 +1154,16 @@ response = basedgpt.chat(prompt)
|
|
|
1093
1154
|
# Print the AI's response
|
|
1094
1155
|
print(response)
|
|
1095
1156
|
```
|
|
1096
|
-
|
|
1157
|
+
|
|
1158
|
+
### `DeepSeek` - Chat with DeepSeek
|
|
1159
|
+
|
|
1097
1160
|
```python
|
|
1098
1161
|
from webscout import DeepSeek
|
|
1099
1162
|
from rich import print
|
|
1100
1163
|
|
|
1101
1164
|
ai = DeepSeek(
|
|
1102
1165
|
is_conversation=True,
|
|
1103
|
-
api_key='cookie,
|
|
1166
|
+
api_key='cookie',
|
|
1104
1167
|
max_tokens=800,
|
|
1105
1168
|
timeout=30,
|
|
1106
1169
|
intro=None,
|
|
@@ -1119,7 +1182,9 @@ prompt = "Tell me about india"
|
|
|
1119
1182
|
r = ai.chat(prompt)
|
|
1120
1183
|
print(r)
|
|
1121
1184
|
```
|
|
1185
|
+
|
|
1122
1186
|
### `Deepinfra`
|
|
1187
|
+
|
|
1123
1188
|
```python
|
|
1124
1189
|
from webscout import DeepInfra
|
|
1125
1190
|
|
|
@@ -1146,6 +1211,7 @@ print(message)
|
|
|
1146
1211
|
```
|
|
1147
1212
|
|
|
1148
1213
|
### `Deepinfra` - VLM
|
|
1214
|
+
|
|
1149
1215
|
```python
|
|
1150
1216
|
from webscout.Provider import VLM
|
|
1151
1217
|
|
|
@@ -1166,8 +1232,8 @@ print(response)
|
|
|
1166
1232
|
|
|
1167
1233
|
```
|
|
1168
1234
|
|
|
1235
|
+
### `GROQ`
|
|
1169
1236
|
|
|
1170
|
-
### GROQ
|
|
1171
1237
|
```python
|
|
1172
1238
|
from webscout import GROQ
|
|
1173
1239
|
ai = GROQ(api_key="")
|
|
@@ -1253,7 +1319,8 @@ print(response_search)
|
|
|
1253
1319
|
|
|
1254
1320
|
```
|
|
1255
1321
|
|
|
1256
|
-
### LLama 70b -
|
|
1322
|
+
### `LLama 70b` - Chat with Meta's Llama 3 70b
|
|
1323
|
+
|
|
1257
1324
|
```python
|
|
1258
1325
|
|
|
1259
1326
|
from webscout import LLAMA
|
|
@@ -1263,13 +1330,17 @@ llama = LLAMA()
|
|
|
1263
1330
|
r = llama.chat("What is the meaning of life?")
|
|
1264
1331
|
print(r)
|
|
1265
1332
|
```
|
|
1266
|
-
|
|
1333
|
+
|
|
1334
|
+
### `AndiSearch`
|
|
1335
|
+
|
|
1267
1336
|
```python
|
|
1268
1337
|
from webscout import AndiSearch
|
|
1269
1338
|
a = AndiSearch()
|
|
1270
1339
|
print(a.chat("HelpingAI-9B"))
|
|
1271
1340
|
```
|
|
1272
|
-
|
|
1341
|
+
|
|
1342
|
+
### 📞 Function Calling (Beta)
|
|
1343
|
+
|
|
1273
1344
|
```python
|
|
1274
1345
|
import json
|
|
1275
1346
|
import logging
|
|
@@ -1382,9 +1453,13 @@ if "error" not in function_call_data:
|
|
|
1382
1453
|
else:
|
|
1383
1454
|
print(f"Error: {function_call_data['error']}")
|
|
1384
1455
|
```
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1456
|
+
|
|
1457
|
+
### 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
|
|
1458
|
+
|
|
1459
|
+
Code is similar to other providers.
|
|
1460
|
+
|
|
1461
|
+
### `LLM`
|
|
1462
|
+
|
|
1388
1463
|
```python
|
|
1389
1464
|
from webscout.LLM import LLM
|
|
1390
1465
|
|
|
@@ -1411,7 +1486,7 @@ while True:
|
|
|
1411
1486
|
print("AI: ", response)
|
|
1412
1487
|
```
|
|
1413
1488
|
|
|
1414
|
-
## Local-LLM
|
|
1489
|
+
## 💻 Local-LLM
|
|
1415
1490
|
|
|
1416
1491
|
Webscout can now run GGUF models locally. You can download and run your favorite models with minimal configuration.
|
|
1417
1492
|
|
|
@@ -1438,7 +1513,8 @@ thread = Thread(model, formats.phi3)
|
|
|
1438
1513
|
thread.interact()
|
|
1439
1514
|
```
|
|
1440
1515
|
|
|
1441
|
-
## Local-rawdog
|
|
1516
|
+
## 🐶 Local-rawdog
|
|
1517
|
+
|
|
1442
1518
|
Webscout's local raw-dog feature allows you to run Python scripts within your terminal prompt.
|
|
1443
1519
|
|
|
1444
1520
|
**Example:**
|
|
@@ -1553,9 +1629,9 @@ gguf.convert(
|
|
|
1553
1629
|
)
|
|
1554
1630
|
```
|
|
1555
1631
|
|
|
1556
|
-
## Autollama
|
|
1632
|
+
## 🤖 Autollama
|
|
1557
1633
|
|
|
1558
|
-
Webscout's `autollama` utility
|
|
1634
|
+
Webscout's `autollama` utility downloads a model from Hugging Face and then automatically makes it Ollama-ready.
|
|
1559
1635
|
|
|
1560
1636
|
```python
|
|
1561
1637
|
from webscout import autollama
|
|
@@ -1584,10 +1660,9 @@ autollama.main(model_path, gguf_file)
|
|
|
1584
1660
|
* The `model_path` in `autollama` is the Hugging Face model ID, and `gguf_file` is the GGUF file ID.
|
|
1585
1661
|
|
|
1586
1662
|
|
|
1663
|
+
## 🌐 `Webai` - Terminal GPT and an Open Interpreter
|
|
1587
1664
|
|
|
1588
|
-
|
|
1589
|
-
```
|
|
1590
|
-
```shell
|
|
1665
|
+
```bash
|
|
1591
1666
|
python -m webscout.webai webai --provider "phind" --rawdog
|
|
1592
1667
|
```
|
|
1593
1668
|
|
|
@@ -1601,10 +1676,30 @@ python -m webscout.webai webai --provider "phind" --rawdog
|
|
|
1601
1676
|
|
|
1602
1677
|
<div align="center">
|
|
1603
1678
|
<!-- Replace `#` with your actual links -->
|
|
1604
|
-
<a href="https://youtube.com/@OEvortex"
|
|
1605
|
-
|
|
1679
|
+
<a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a>
|
|
1680
|
+
</div>
|
|
1606
1681
|
<div align="center">
|
|
1607
|
-
<a href="https://youtube.com/@devsdocode"
|
|
1682
|
+
<a href="https://youtube.com/@devsdocode">▶️ Devs Do Code's YouTube Channel</a>
|
|
1608
1683
|
</div>
|
|
1684
|
+
<div align="center">
|
|
1685
|
+
<a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
|
|
1686
|
+
</div>
|
|
1687
|
+
|
|
1688
|
+
## 🤝 Contributing
|
|
1689
|
+
|
|
1690
|
+
Contributions are welcome! If you'd like to contribute to Webscout, please follow these steps:
|
|
1691
|
+
|
|
1692
|
+
1. Fork the repository.
|
|
1693
|
+
2. Create a new branch for your feature or bug fix.
|
|
1694
|
+
3. Make your changes and commit them with descriptive messages.
|
|
1695
|
+
4. Push your branch to your forked repository.
|
|
1696
|
+
5. Submit a pull request to the main repository.
|
|
1697
|
+
|
|
1698
|
+
## 📜 License
|
|
1699
|
+
|
|
1700
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
1609
1701
|
|
|
1702
|
+
## 🙏 Acknowledgments
|
|
1610
1703
|
|
|
1704
|
+
* All the amazing developers who have contributed to the project!
|
|
1705
|
+
* The open-source community for their support and inspiration.
|