webscout 1.0.7__tar.gz → 1.0.8__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-1.0.7/webscout.egg-info → webscout-1.0.8}/PKG-INFO +16 -4
- {webscout-1.0.7 → webscout-1.0.8}/README.md +14 -2
- {webscout-1.0.7 → webscout-1.0.8}/setup.py +2 -2
- {webscout-1.0.7 → webscout-1.0.8}/webscout/AI.py +11 -19
- webscout-1.0.8/webscout/version.py +1 -0
- {webscout-1.0.7 → webscout-1.0.8/webscout.egg-info}/PKG-INFO +16 -4
- webscout-1.0.7/webscout/version.py +0 -1
- {webscout-1.0.7 → webscout-1.0.8}/LICENSE.md +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/setup.cfg +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/__init__.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/__main__.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/cli.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/exceptions.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/models.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/utils.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/webscout_search.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout/webscout_search_async.py +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout.egg-info/SOURCES.txt +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout.egg-info/entry_points.txt +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout.egg-info/requires.txt +0 -0
- {webscout-1.0.7 → webscout-1.0.8}/webscout.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.8
|
|
4
4
|
Summary: Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models
|
|
5
|
-
Author: OEvortex
|
|
5
|
+
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
7
7
|
License: HelpingAI Simplified Universal License
|
|
8
8
|
Project-URL: Documentation, https://github.com/OE-LUCIFER/Webscout/wiki
|
|
@@ -386,8 +386,20 @@ WEBSAI.search()
|
|
|
386
386
|
Thanks To Divyansh Shukla for This code
|
|
387
387
|
```python
|
|
388
388
|
from webscout.AI import YepChat
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
|
|
390
|
+
def main():
|
|
391
|
+
# Initialize the YepChat class with your message
|
|
392
|
+
yep_chat = YepChat(message="who is pm of india")
|
|
393
|
+
|
|
394
|
+
# Send the request and process the response
|
|
395
|
+
response = yep_chat.send_request()
|
|
396
|
+
processed_response = yep_chat.process_response(response)
|
|
397
|
+
|
|
398
|
+
# Print the processed response
|
|
399
|
+
print(processed_response)
|
|
400
|
+
|
|
401
|
+
if __name__ == "__main__":
|
|
402
|
+
main()
|
|
391
403
|
```
|
|
392
404
|
|
|
393
405
|
### 11. `You.com` - search with you.com
|
|
@@ -348,8 +348,20 @@ WEBSAI.search()
|
|
|
348
348
|
Thanks To Divyansh Shukla for This code
|
|
349
349
|
```python
|
|
350
350
|
from webscout.AI import YepChat
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
|
|
352
|
+
def main():
|
|
353
|
+
# Initialize the YepChat class with your message
|
|
354
|
+
yep_chat = YepChat(message="who is pm of india")
|
|
355
|
+
|
|
356
|
+
# Send the request and process the response
|
|
357
|
+
response = yep_chat.send_request()
|
|
358
|
+
processed_response = yep_chat.process_response(response)
|
|
359
|
+
|
|
360
|
+
# Print the processed response
|
|
361
|
+
print(processed_response)
|
|
362
|
+
|
|
363
|
+
if __name__ == "__main__":
|
|
364
|
+
main()
|
|
353
365
|
```
|
|
354
366
|
|
|
355
367
|
### 11. `You.com` - search with you.com
|
|
@@ -10,11 +10,11 @@ with open("README.md", encoding="utf-8") as f:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="webscout",
|
|
13
|
-
version="1.0.
|
|
13
|
+
version="1.0.8", # Use the version variable from the version.py file
|
|
14
14
|
description="Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models",
|
|
15
15
|
long_description=README,
|
|
16
16
|
long_description_content_type="text/markdown",
|
|
17
|
-
author="OEvortex
|
|
17
|
+
author="OEvortex",
|
|
18
18
|
author_email="helpingai5@gmail.com", # Replace with your email
|
|
19
19
|
packages=find_packages(),
|
|
20
20
|
classifiers=[
|
|
@@ -14,6 +14,7 @@ from re import findall
|
|
|
14
14
|
from requests.exceptions import RequestException
|
|
15
15
|
from curl_cffi.requests import get, RequestsError
|
|
16
16
|
import g4f
|
|
17
|
+
#------------------------------------------------------phind--------------------------------------------------------
|
|
17
18
|
class PhindSearch:
|
|
18
19
|
def __init__(self, query):
|
|
19
20
|
self.query = query
|
|
@@ -52,7 +53,7 @@ class PhindSearch:
|
|
|
52
53
|
"""Use webscout.AI."""
|
|
53
54
|
search_instance = PhindSearch(query)
|
|
54
55
|
search_instance.search()
|
|
55
|
-
|
|
56
|
+
#------------------------------------------------------yep.com--------------------------------------------------------
|
|
56
57
|
class YepChat:
|
|
57
58
|
def __init__(self, message="hello"):
|
|
58
59
|
self.url = "https://api.yep.com/v1/chat/completions"
|
|
@@ -97,11 +98,9 @@ class YepChat:
|
|
|
97
98
|
try:
|
|
98
99
|
myval = eval(myline)
|
|
99
100
|
if "choices" in myval and "delta" in myval["choices"][0] and "content" in myval["choices"][0]["delta"]:
|
|
100
|
-
print(myval["choices"][0]["delta"]["content"], flush=True, end="")
|
|
101
101
|
myset += myval["choices"][0]["delta"]["content"]
|
|
102
102
|
except:
|
|
103
103
|
continue
|
|
104
|
-
print(myset)
|
|
105
104
|
return myset
|
|
106
105
|
|
|
107
106
|
@staticmethod
|
|
@@ -109,8 +108,9 @@ class YepChat:
|
|
|
109
108
|
"""Sends a request to the Yep API and processes the response."""
|
|
110
109
|
yep_chat = YepChat(message=message)
|
|
111
110
|
response = yep_chat.send_request()
|
|
112
|
-
yep_chat.process_response(response)
|
|
113
|
-
|
|
111
|
+
processed_response = yep_chat.process_response(response)
|
|
112
|
+
print(processed_response)
|
|
113
|
+
#------------------------------------------------------youchat--------------------------------------------------------
|
|
114
114
|
class youChat:
|
|
115
115
|
"""
|
|
116
116
|
This class provides methods for generating completions based on prompts.
|
|
@@ -169,23 +169,15 @@ class youChat:
|
|
|
169
169
|
you_chat = youChat()
|
|
170
170
|
completion = you_chat.create(prompt)
|
|
171
171
|
print(completion)
|
|
172
|
-
|
|
172
|
+
#------------------------------------------------------Gemini--------------------------------------------------------
|
|
173
173
|
class Gemini:
|
|
174
174
|
def __init__(self):
|
|
175
|
-
self.messages = [
|
|
176
|
-
{
|
|
177
|
-
"role": "system",
|
|
178
|
-
"content": "You are a helpful assistant.",
|
|
179
|
-
}
|
|
180
|
-
]
|
|
175
|
+
self.messages = []
|
|
181
176
|
|
|
182
177
|
def chat(self, *args):
|
|
183
178
|
assert args != ()
|
|
184
179
|
|
|
185
|
-
message = ""
|
|
186
|
-
for i in args:
|
|
187
|
-
message += i
|
|
188
|
-
|
|
180
|
+
message = " ".join(args)
|
|
189
181
|
self.messages.append({"role": "user", "content": message})
|
|
190
182
|
|
|
191
183
|
response = g4f.ChatCompletion.create(
|
|
@@ -197,10 +189,10 @@ class Gemini:
|
|
|
197
189
|
ms = ""
|
|
198
190
|
for message in response:
|
|
199
191
|
ms += message
|
|
200
|
-
|
|
192
|
+
print(ms.strip(), end="", flush=True) # Ensure no trailing whitespace is printed
|
|
201
193
|
print()
|
|
202
|
-
self.messages.append({"role": "assistant", "content": ms})
|
|
203
|
-
return ms
|
|
194
|
+
self.messages.append({"role": "assistant", "content": ms.strip()}) # Strip whitespace from the message content
|
|
195
|
+
return ms.strip() # Return the message without trailing whitespace
|
|
204
196
|
|
|
205
197
|
@staticmethod
|
|
206
198
|
def chat_cli(message):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.8"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.8
|
|
4
4
|
Summary: Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models
|
|
5
|
-
Author: OEvortex
|
|
5
|
+
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
7
7
|
License: HelpingAI Simplified Universal License
|
|
8
8
|
Project-URL: Documentation, https://github.com/OE-LUCIFER/Webscout/wiki
|
|
@@ -386,8 +386,20 @@ WEBSAI.search()
|
|
|
386
386
|
Thanks To Divyansh Shukla for This code
|
|
387
387
|
```python
|
|
388
388
|
from webscout.AI import YepChat
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
|
|
390
|
+
def main():
|
|
391
|
+
# Initialize the YepChat class with your message
|
|
392
|
+
yep_chat = YepChat(message="who is pm of india")
|
|
393
|
+
|
|
394
|
+
# Send the request and process the response
|
|
395
|
+
response = yep_chat.send_request()
|
|
396
|
+
processed_response = yep_chat.process_response(response)
|
|
397
|
+
|
|
398
|
+
# Print the processed response
|
|
399
|
+
print(processed_response)
|
|
400
|
+
|
|
401
|
+
if __name__ == "__main__":
|
|
402
|
+
main()
|
|
391
403
|
```
|
|
392
404
|
|
|
393
405
|
### 11. `You.com` - search with you.com
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|