webscout 2.6__tar.gz → 2.7__tar.gz
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-2.6 → webscout-2.7}/PKG-INFO +35 -21
- {webscout-2.6 → webscout-2.7}/README.md +34 -20
- {webscout-2.6 → webscout-2.7}/setup.py +1 -1
- {webscout-2.6 → webscout-2.7}/webscout/Local/_version.py +1 -1
- {webscout-2.6 → webscout-2.7}/webscout/Local/formats.py +154 -88
- {webscout-2.6 → webscout-2.7}/webscout/Local/model.py +4 -4
- {webscout-2.6 → webscout-2.7}/webscout/Local/thread.py +166 -156
- webscout-2.7/webscout/Provider/BasedGPT.py +226 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/__init__.py +1 -0
- {webscout-2.6 → webscout-2.7}/webscout/__init__.py +2 -2
- {webscout-2.6 → webscout-2.7}/webscout/cli.py +39 -3
- webscout-2.7/webscout/version.py +2 -0
- webscout-2.6/webscout/webscout_search_async.py → webscout-2.7/webscout/webscout_search.py +261 -254
- webscout-2.7/webscout/webscout_search_async.py +361 -0
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/PKG-INFO +35 -21
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/SOURCES.txt +1 -0
- webscout-2.6/webscout/version.py +0 -2
- webscout-2.6/webscout/webscout_search.py +0 -78
- {webscout-2.6 → webscout-2.7}/DeepWEBS/__init__.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/documents/__init__.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/documents/query_results_extractor.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/documents/webpage_content_extractor.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/networks/__init__.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/networks/filepath_converter.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/networks/google_searcher.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/networks/network_configs.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/networks/webpage_fetcher.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/utilsdw/__init__.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/utilsdw/enver.py +0 -0
- {webscout-2.6 → webscout-2.7}/DeepWEBS/utilsdw/logger.py +0 -0
- {webscout-2.6 → webscout-2.7}/LICENSE.md +0 -0
- {webscout-2.6 → webscout-2.7}/setup.cfg +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/AIauto.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/AIbase.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/AIutel.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/DWEBS.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/LLM.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Local/__init__.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Local/samplers.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Local/utils.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Berlin4h.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Blackboxai.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/ChatGPTUK.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Cohere.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Gemini.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Groq.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Koboldai.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Leo.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Llama2.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/OpenGPT.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Openai.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Perplexity.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Phind.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Poe.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Reka.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/ThinkAnyAI.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Xjai.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Yepchat.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/Provider/Youchat.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/__main__.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/async_providers.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/exceptions.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/g4f.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/models.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/tempid.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/transcriber.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/utils.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/voice.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout/webai.py +0 -0
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/entry_points.txt +0 -0
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/requires.txt +0 -0
- {webscout-2.6 → webscout-2.7}/webscout.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7
|
|
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
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
@@ -109,17 +109,18 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
|
|
|
109
109
|
- [Available TTS Voices:](#available-tts-voices)
|
|
110
110
|
- [Exceptions](#exceptions)
|
|
111
111
|
- [usage of webscout](#usage-of-webscout)
|
|
112
|
-
- [1. `text()` - text search by DuckDuckGo.com
|
|
113
|
-
- [2. `answers()` - instant answers by DuckDuckGo.com
|
|
114
|
-
- [3. `images()` - image search by DuckDuckGo.com
|
|
112
|
+
- [1. `text()` - text search by DuckDuckGo.com](#1-text---text-search-by-duckduckgocom)
|
|
113
|
+
- [2. `answers()` - instant answers by DuckDuckGo.com](#2-answers---instant-answers-by-duckduckgocom)
|
|
114
|
+
- [3. `images()` - image search by DuckDuckGo.com](#3-images---image-search-by-duckduckgocom)
|
|
115
115
|
- [4. `videos()` - video search by DuckDuckGo.com](#4-videos---video-search-by-duckduckgocom)
|
|
116
|
-
- [5. `news()` - news search by DuckDuckGo.com
|
|
117
|
-
- [6. `maps()` - map search by DuckDuckGo.com
|
|
118
|
-
- [7. `translate()` - translation by DuckDuckGo.com
|
|
119
|
-
- [8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
116
|
+
- [5. `news()` - news search by DuckDuckGo.com](#5-news---news-search-by-duckduckgocom)
|
|
117
|
+
- [6. `maps()` - map search by DuckDuckGo.com](#6-maps---map-search-by-duckduckgocom)
|
|
118
|
+
- [7. `translate()` - translation by DuckDuckGo.com](#7-translate---translation-by-duckduckgocom)
|
|
119
|
+
- [8. `suggestions()` - suggestions by DuckDuckGo.com](#8-suggestions---suggestions-by-duckduckgocom)
|
|
120
120
|
- [ALL acts](#all-acts)
|
|
121
121
|
- [Webscout Supported Acts:](#webscout-supported-acts)
|
|
122
122
|
- [usage of webscout AI](#usage-of-webscout-ai)
|
|
123
|
+
- [0. `Duckchat` - chat with LLM](#0-duckchat---chat-with-llm)
|
|
123
124
|
- [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
|
|
124
125
|
- [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
|
|
125
126
|
- [3. `You.com` - search/chat with you.com](#3-youcom---searchchat-with-youcom)
|
|
@@ -134,6 +135,8 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
|
|
|
134
135
|
- [12. `Xjai` - chat with free gpt 3.5](#12-xjai---chat-with-free-gpt-35)
|
|
135
136
|
- [13. `ThinkAny` - AI search engine](#13-thinkany---ai-search-engine)
|
|
136
137
|
- [14. `chatgptuk` - Chat with gemini-pro](#14-chatgptuk---chat-with-gemini-pro)
|
|
138
|
+
- [15. `poe`- chat with poe](#15-poe--chat-with-poe)
|
|
139
|
+
- [16. `BasedGPT` - chat with GPT](#16-basedgpt---chat-with-gpt)
|
|
137
140
|
- [`LLM`](#llm)
|
|
138
141
|
- [`Local-LLM` webscout can now run GGUF models](#local-llm-webscout-can-now-run-gguf-models)
|
|
139
142
|
- [`LLM` with internet](#llm-with-internet)
|
|
@@ -525,12 +528,12 @@ Exceptions:
|
|
|
525
528
|
|
|
526
529
|
## usage of webscout
|
|
527
530
|
|
|
528
|
-
### 1. `text()` - text search by DuckDuckGo.com
|
|
531
|
+
### 1. `text()` - text search by DuckDuckGo.com
|
|
529
532
|
|
|
530
533
|
```python
|
|
531
534
|
from webscout import WEBS
|
|
532
535
|
|
|
533
|
-
# Text search for 'live free or die' using DuckDuckGo.com
|
|
536
|
+
# Text search for 'live free or die' using DuckDuckGo.com
|
|
534
537
|
with WEBS() as WEBS:
|
|
535
538
|
for r in WEBS.text('live free or die', region='wt-wt', safesearch='off', timelimit='y', max_results=10):
|
|
536
539
|
print(r)
|
|
@@ -539,23 +542,23 @@ with WEBS() as WEBS:
|
|
|
539
542
|
print(r)
|
|
540
543
|
```
|
|
541
544
|
|
|
542
|
-
### 2. `answers()` - instant answers by DuckDuckGo.com
|
|
545
|
+
### 2. `answers()` - instant answers by DuckDuckGo.com
|
|
543
546
|
|
|
544
547
|
```python
|
|
545
548
|
from webscout import WEBS
|
|
546
549
|
|
|
547
|
-
# Instant answers for the query "sun" using DuckDuckGo.com
|
|
550
|
+
# Instant answers for the query "sun" using DuckDuckGo.com
|
|
548
551
|
with WEBS() as WEBS:
|
|
549
552
|
for r in WEBS.answers("sun"):
|
|
550
553
|
print(r)
|
|
551
554
|
```
|
|
552
555
|
|
|
553
|
-
### 3. `images()` - image search by DuckDuckGo.com
|
|
556
|
+
### 3. `images()` - image search by DuckDuckGo.com
|
|
554
557
|
|
|
555
558
|
```python
|
|
556
559
|
from webscout import WEBS
|
|
557
560
|
|
|
558
|
-
# Image search for the keyword 'butterfly' using DuckDuckGo.com
|
|
561
|
+
# Image search for the keyword 'butterfly' using DuckDuckGo.com
|
|
559
562
|
with WEBS() as WEBS:
|
|
560
563
|
keywords = 'butterfly'
|
|
561
564
|
WEBS_images_gen = WEBS.images(
|
|
@@ -593,7 +596,7 @@ with WEBS() as WEBS:
|
|
|
593
596
|
print(r)
|
|
594
597
|
```
|
|
595
598
|
|
|
596
|
-
### 5. `news()` - news search by DuckDuckGo.com
|
|
599
|
+
### 5. `news()` - news search by DuckDuckGo.com
|
|
597
600
|
|
|
598
601
|
```python
|
|
599
602
|
from webscout import WEBS
|
|
@@ -640,7 +643,7 @@ print(formatted_headlines)
|
|
|
640
643
|
|
|
641
644
|
```
|
|
642
645
|
|
|
643
|
-
### 6. `maps()` - map search by DuckDuckGo.com
|
|
646
|
+
### 6. `maps()` - map search by DuckDuckGo.com
|
|
644
647
|
|
|
645
648
|
```python
|
|
646
649
|
from webscout import WEBS
|
|
@@ -651,24 +654,24 @@ with WEBS() as WEBS:
|
|
|
651
654
|
print(r)
|
|
652
655
|
```
|
|
653
656
|
|
|
654
|
-
### 7. `translate()` - translation by DuckDuckGo.com
|
|
657
|
+
### 7. `translate()` - translation by DuckDuckGo.com
|
|
655
658
|
|
|
656
659
|
```python
|
|
657
660
|
from webscout import WEBS
|
|
658
661
|
|
|
659
|
-
# Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
|
|
662
|
+
# Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
|
|
660
663
|
with WEBS() as WEBS:
|
|
661
664
|
keywords = 'school'
|
|
662
665
|
r = WEBS.translate(keywords, to="hi")
|
|
663
666
|
print(r)
|
|
664
667
|
```
|
|
665
668
|
|
|
666
|
-
### 8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
669
|
+
### 8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
667
670
|
|
|
668
671
|
```python
|
|
669
672
|
from webscout import WEBS
|
|
670
673
|
|
|
671
|
-
# Suggestions for the keyword 'fly' using DuckDuckGo.com
|
|
674
|
+
# Suggestions for the keyword 'fly' using DuckDuckGo.com
|
|
672
675
|
with WEBS() as WEBS:
|
|
673
676
|
for r in WEBS.suggestions("fly"):
|
|
674
677
|
print(r)
|
|
@@ -931,7 +934,12 @@ ___
|
|
|
931
934
|
</details>
|
|
932
935
|
|
|
933
936
|
## usage of webscout AI
|
|
934
|
-
|
|
937
|
+
### 0. `Duckchat` - chat with LLM
|
|
938
|
+
```python
|
|
939
|
+
from webscout import WEBS as w
|
|
940
|
+
R = w().chat("hello", model='claude-3-haiku') # GPT-3.5 Turbo
|
|
941
|
+
print(R)
|
|
942
|
+
```
|
|
935
943
|
### 1. `PhindSearch` - Search using Phind.com
|
|
936
944
|
|
|
937
945
|
```python
|
|
@@ -1199,7 +1207,13 @@ ai = ChatGPTUK(
|
|
|
1199
1207
|
prompt = "Explain the concept of recursion in simple terms."
|
|
1200
1208
|
response = ai.chat(prompt)
|
|
1201
1209
|
print(response)
|
|
1210
|
+
|
|
1202
1211
|
```
|
|
1212
|
+
### 15. `poe`- chat with poe
|
|
1213
|
+
Usage code similar to other proviers
|
|
1214
|
+
|
|
1215
|
+
### 16. `BasedGPT` - chat with GPT
|
|
1216
|
+
Usage code similar to other providers
|
|
1203
1217
|
### `LLM`
|
|
1204
1218
|
```python
|
|
1205
1219
|
from webscout.LLM import LLM
|
|
@@ -47,17 +47,18 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
|
|
|
47
47
|
- [Available TTS Voices:](#available-tts-voices)
|
|
48
48
|
- [Exceptions](#exceptions)
|
|
49
49
|
- [usage of webscout](#usage-of-webscout)
|
|
50
|
-
- [1. `text()` - text search by DuckDuckGo.com
|
|
51
|
-
- [2. `answers()` - instant answers by DuckDuckGo.com
|
|
52
|
-
- [3. `images()` - image search by DuckDuckGo.com
|
|
50
|
+
- [1. `text()` - text search by DuckDuckGo.com](#1-text---text-search-by-duckduckgocom)
|
|
51
|
+
- [2. `answers()` - instant answers by DuckDuckGo.com](#2-answers---instant-answers-by-duckduckgocom)
|
|
52
|
+
- [3. `images()` - image search by DuckDuckGo.com](#3-images---image-search-by-duckduckgocom)
|
|
53
53
|
- [4. `videos()` - video search by DuckDuckGo.com](#4-videos---video-search-by-duckduckgocom)
|
|
54
|
-
- [5. `news()` - news search by DuckDuckGo.com
|
|
55
|
-
- [6. `maps()` - map search by DuckDuckGo.com
|
|
56
|
-
- [7. `translate()` - translation by DuckDuckGo.com
|
|
57
|
-
- [8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
54
|
+
- [5. `news()` - news search by DuckDuckGo.com](#5-news---news-search-by-duckduckgocom)
|
|
55
|
+
- [6. `maps()` - map search by DuckDuckGo.com](#6-maps---map-search-by-duckduckgocom)
|
|
56
|
+
- [7. `translate()` - translation by DuckDuckGo.com](#7-translate---translation-by-duckduckgocom)
|
|
57
|
+
- [8. `suggestions()` - suggestions by DuckDuckGo.com](#8-suggestions---suggestions-by-duckduckgocom)
|
|
58
58
|
- [ALL acts](#all-acts)
|
|
59
59
|
- [Webscout Supported Acts:](#webscout-supported-acts)
|
|
60
60
|
- [usage of webscout AI](#usage-of-webscout-ai)
|
|
61
|
+
- [0. `Duckchat` - chat with LLM](#0-duckchat---chat-with-llm)
|
|
61
62
|
- [1. `PhindSearch` - Search using Phind.com](#1-phindsearch---search-using-phindcom)
|
|
62
63
|
- [2. `YepChat` - Chat with mistral 8x7b powered by yepchat](#2-yepchat---chat-with-mistral-8x7b-powered-by-yepchat)
|
|
63
64
|
- [3. `You.com` - search/chat with you.com](#3-youcom---searchchat-with-youcom)
|
|
@@ -72,6 +73,8 @@ Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can
|
|
|
72
73
|
- [12. `Xjai` - chat with free gpt 3.5](#12-xjai---chat-with-free-gpt-35)
|
|
73
74
|
- [13. `ThinkAny` - AI search engine](#13-thinkany---ai-search-engine)
|
|
74
75
|
- [14. `chatgptuk` - Chat with gemini-pro](#14-chatgptuk---chat-with-gemini-pro)
|
|
76
|
+
- [15. `poe`- chat with poe](#15-poe--chat-with-poe)
|
|
77
|
+
- [16. `BasedGPT` - chat with GPT](#16-basedgpt---chat-with-gpt)
|
|
75
78
|
- [`LLM`](#llm)
|
|
76
79
|
- [`Local-LLM` webscout can now run GGUF models](#local-llm-webscout-can-now-run-gguf-models)
|
|
77
80
|
- [`LLM` with internet](#llm-with-internet)
|
|
@@ -463,12 +466,12 @@ Exceptions:
|
|
|
463
466
|
|
|
464
467
|
## usage of webscout
|
|
465
468
|
|
|
466
|
-
### 1. `text()` - text search by DuckDuckGo.com
|
|
469
|
+
### 1. `text()` - text search by DuckDuckGo.com
|
|
467
470
|
|
|
468
471
|
```python
|
|
469
472
|
from webscout import WEBS
|
|
470
473
|
|
|
471
|
-
# Text search for 'live free or die' using DuckDuckGo.com
|
|
474
|
+
# Text search for 'live free or die' using DuckDuckGo.com
|
|
472
475
|
with WEBS() as WEBS:
|
|
473
476
|
for r in WEBS.text('live free or die', region='wt-wt', safesearch='off', timelimit='y', max_results=10):
|
|
474
477
|
print(r)
|
|
@@ -477,23 +480,23 @@ with WEBS() as WEBS:
|
|
|
477
480
|
print(r)
|
|
478
481
|
```
|
|
479
482
|
|
|
480
|
-
### 2. `answers()` - instant answers by DuckDuckGo.com
|
|
483
|
+
### 2. `answers()` - instant answers by DuckDuckGo.com
|
|
481
484
|
|
|
482
485
|
```python
|
|
483
486
|
from webscout import WEBS
|
|
484
487
|
|
|
485
|
-
# Instant answers for the query "sun" using DuckDuckGo.com
|
|
488
|
+
# Instant answers for the query "sun" using DuckDuckGo.com
|
|
486
489
|
with WEBS() as WEBS:
|
|
487
490
|
for r in WEBS.answers("sun"):
|
|
488
491
|
print(r)
|
|
489
492
|
```
|
|
490
493
|
|
|
491
|
-
### 3. `images()` - image search by DuckDuckGo.com
|
|
494
|
+
### 3. `images()` - image search by DuckDuckGo.com
|
|
492
495
|
|
|
493
496
|
```python
|
|
494
497
|
from webscout import WEBS
|
|
495
498
|
|
|
496
|
-
# Image search for the keyword 'butterfly' using DuckDuckGo.com
|
|
499
|
+
# Image search for the keyword 'butterfly' using DuckDuckGo.com
|
|
497
500
|
with WEBS() as WEBS:
|
|
498
501
|
keywords = 'butterfly'
|
|
499
502
|
WEBS_images_gen = WEBS.images(
|
|
@@ -531,7 +534,7 @@ with WEBS() as WEBS:
|
|
|
531
534
|
print(r)
|
|
532
535
|
```
|
|
533
536
|
|
|
534
|
-
### 5. `news()` - news search by DuckDuckGo.com
|
|
537
|
+
### 5. `news()` - news search by DuckDuckGo.com
|
|
535
538
|
|
|
536
539
|
```python
|
|
537
540
|
from webscout import WEBS
|
|
@@ -578,7 +581,7 @@ print(formatted_headlines)
|
|
|
578
581
|
|
|
579
582
|
```
|
|
580
583
|
|
|
581
|
-
### 6. `maps()` - map search by DuckDuckGo.com
|
|
584
|
+
### 6. `maps()` - map search by DuckDuckGo.com
|
|
582
585
|
|
|
583
586
|
```python
|
|
584
587
|
from webscout import WEBS
|
|
@@ -589,24 +592,24 @@ with WEBS() as WEBS:
|
|
|
589
592
|
print(r)
|
|
590
593
|
```
|
|
591
594
|
|
|
592
|
-
### 7. `translate()` - translation by DuckDuckGo.com
|
|
595
|
+
### 7. `translate()` - translation by DuckDuckGo.com
|
|
593
596
|
|
|
594
597
|
```python
|
|
595
598
|
from webscout import WEBS
|
|
596
599
|
|
|
597
|
-
# Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
|
|
600
|
+
# Translation of the keyword 'school' to German ('hi') using DuckDuckGo.com
|
|
598
601
|
with WEBS() as WEBS:
|
|
599
602
|
keywords = 'school'
|
|
600
603
|
r = WEBS.translate(keywords, to="hi")
|
|
601
604
|
print(r)
|
|
602
605
|
```
|
|
603
606
|
|
|
604
|
-
### 8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
607
|
+
### 8. `suggestions()` - suggestions by DuckDuckGo.com
|
|
605
608
|
|
|
606
609
|
```python
|
|
607
610
|
from webscout import WEBS
|
|
608
611
|
|
|
609
|
-
# Suggestions for the keyword 'fly' using DuckDuckGo.com
|
|
612
|
+
# Suggestions for the keyword 'fly' using DuckDuckGo.com
|
|
610
613
|
with WEBS() as WEBS:
|
|
611
614
|
for r in WEBS.suggestions("fly"):
|
|
612
615
|
print(r)
|
|
@@ -869,7 +872,12 @@ ___
|
|
|
869
872
|
</details>
|
|
870
873
|
|
|
871
874
|
## usage of webscout AI
|
|
872
|
-
|
|
875
|
+
### 0. `Duckchat` - chat with LLM
|
|
876
|
+
```python
|
|
877
|
+
from webscout import WEBS as w
|
|
878
|
+
R = w().chat("hello", model='claude-3-haiku') # GPT-3.5 Turbo
|
|
879
|
+
print(R)
|
|
880
|
+
```
|
|
873
881
|
### 1. `PhindSearch` - Search using Phind.com
|
|
874
882
|
|
|
875
883
|
```python
|
|
@@ -1137,7 +1145,13 @@ ai = ChatGPTUK(
|
|
|
1137
1145
|
prompt = "Explain the concept of recursion in simple terms."
|
|
1138
1146
|
response = ai.chat(prompt)
|
|
1139
1147
|
print(response)
|
|
1148
|
+
|
|
1140
1149
|
```
|
|
1150
|
+
### 15. `poe`- chat with poe
|
|
1151
|
+
Usage code similar to other proviers
|
|
1152
|
+
|
|
1153
|
+
### 16. `BasedGPT` - chat with GPT
|
|
1154
|
+
Usage code similar to other providers
|
|
1141
1155
|
### `LLM`
|
|
1142
1156
|
```python
|
|
1143
1157
|
from webscout.LLM import LLM
|
|
@@ -5,7 +5,7 @@ with open("README.md", encoding="utf-8") as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="webscout",
|
|
8
|
-
version="2.
|
|
8
|
+
version="2.7",
|
|
9
9
|
description="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",
|
|
10
10
|
long_description=README,
|
|
11
11
|
long_description_content_type="text/markdown",
|