webscout 6.6__tar.gz → 6.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-6.6/webscout.egg-info → webscout-6.8}/PKG-INFO +2 -8
- {webscout-6.6 → webscout-6.8}/README.md +1 -7
- {webscout-6.6 → webscout-6.8}/setup.py +1 -1
- {webscout-6.6 → webscout-6.8}/webscout/Extra/weather.py +5 -5
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Cloudflare.py +2 -1
- {webscout-6.6 → webscout-6.8}/webscout/Provider/DARKAI.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Free2GPT.py +5 -5
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Marcus.py +3 -3
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Netwrck.py +238 -234
- {webscout-6.6 → webscout-6.8}/webscout/Provider/PI.py +113 -47
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Phind.py +6 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/PizzaGPT.py +62 -53
- {webscout-6.6 → webscout-6.8}/webscout/Provider/RUBIKSAI.py +93 -38
- {webscout-6.6 → webscout-6.8}/webscout/Provider/__init__.py +0 -6
- {webscout-6.6 → webscout-6.8}/webscout/Provider/cleeai.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/elmo.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/gaurish.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/geminiprorealtime.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/lepton.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/llama3mitril.py +3 -3
- {webscout-6.6 → webscout-6.8}/webscout/Provider/llamatutor.py +2 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/llmchat.py +3 -2
- {webscout-6.6 → webscout-6.8}/webscout/Provider/meta.py +3 -3
- {webscout-6.6 → webscout-6.8}/webscout/Provider/tutorai.py +1 -1
- {webscout-6.6 → webscout-6.8}/webscout/cli.py +31 -39
- {webscout-6.6 → webscout-6.8}/webscout/litprinter/__init__.py +16 -7
- {webscout-6.6 → webscout-6.8}/webscout/version.py +1 -1
- {webscout-6.6 → webscout-6.8}/webscout/webscout_search.py +1 -1
- {webscout-6.6 → webscout-6.8/webscout.egg-info}/PKG-INFO +2 -8
- {webscout-6.6 → webscout-6.8}/webscout.egg-info/SOURCES.txt +0 -4
- {webscout-6.6 → webscout-6.8}/webscout.egg-info/entry_points.txt +1 -1
- webscout-6.6/webscout/Provider/Farfalle.py +0 -227
- webscout-6.6/webscout/Provider/NinjaChat.py +0 -200
- webscout-6.6/webscout/Provider/mhystical.py +0 -176
- webscout-6.6/webstoken/t.py +0 -75
- {webscout-6.6 → webscout-6.8}/LICENSE.md +0 -0
- {webscout-6.6 → webscout-6.8}/setup.cfg +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/AIauto.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/AIbase.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/AIutel.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Bard.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/DWEBS.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/YTdownloader.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/transcriber.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/channel.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/errors.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/extras.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/https.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/patterns.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/playlist.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/pool.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/query.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/stream.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/YTToolkit/ytapi/video.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/autocoder/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/autocoder/autocoder_utiles.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/autocoder/rawdog.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/autollama.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/gguf.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/markdownlite/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Extra/weather_ascii.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/LLM.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Litlogger/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/_version.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/formats.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/model.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/samplers.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/thread.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/ui.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Local/utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/AI21.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/AISEARCH/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/AISEARCH/felo_search.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/AISEARCH/ooai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Amigo.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Andi.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Bing.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Blackboxai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/ChatGPTES.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Chatify.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Cohere.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Deepinfra.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Deepseek.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/DiscordRocks.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/EDITEE.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/GPTWeb.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Gemini.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Groq.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Jadve.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Koboldai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Llama.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Llama3.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/OLLAMA.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Openai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Reka.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/AiForce/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/AiForce/async_aiforce.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/AiForce/sync_aiforce.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/Nexra/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/Nexra/async_nexra.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/Nexra/sync_nexra.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/PollinationsAI/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/PollinationsAI/async_pollinations.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/PollinationsAI/sync_pollinations.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/artbit/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/artbit/async_artbit.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/artbit/sync_artbit.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/blackbox/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/blackbox/async_blackbox.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/blackbox/sync_blackbox.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/deepinfra/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/deepinfra/async_deepinfra.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/deepinfra/sync_deepinfra.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/huggingface/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/huggingface/async_huggingface.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/huggingface/sync_huggingface.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/imgninza/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/imgninza/async_ninza.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/imgninza/sync_ninza.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/talkai/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/talkai/async_talkai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTI/talkai/sync_talkai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/deepgram.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/elevenlabs.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/gesserit.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/murfai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/parler.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/streamElements.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TTS/voicepod.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/TeachAnything.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/Youchat.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/ai4chat.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/aimathgpt.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/askmyai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/bagoodex.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/cerebras.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/geminiapi.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/julius.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/koala.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/learnfastai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/multichat.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/promptrefine.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/talkai.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/turboseek.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/typegpt.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/x0gpt.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/Provider/yep.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/__main__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/conversation.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/exceptions.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/litagent/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/litprinter/colors.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/optimizers.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/prompt_manager.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/crawler.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/scout.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/search_result.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/text_analyzer.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/text_utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core/web_analyzer.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/core.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/element.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/parsers/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/parsers/html5lib_parser.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/parsers/html_parser.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/parsers/lxml_parser.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/scout/utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/swiftcli/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/tempid.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/update_checker.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/utils.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/webscout_search_async.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/zeroart/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/zeroart/base.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/zeroart/effects.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/zeroart/fonts.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout/zerodir/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-6.6 → webscout-6.8}/webscout.egg-info/requires.txt +0 -0
- {webscout-6.6 → webscout-6.8}/webscout.egg-info/top_level.txt +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/__init__.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/classifier.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/keywords.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/language.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/ner.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/normalizer.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/processor.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/sentiment.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/stemmer.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/tagger.py +0 -0
- {webscout-6.6 → webscout-6.8}/webstoken/tokenizer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.8
|
|
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
|
|
@@ -232,7 +232,7 @@ python -m webscout --help
|
|
|
232
232
|
```python
|
|
233
233
|
from webscout import weather as w
|
|
234
234
|
weather = w.get("Qazigund")
|
|
235
|
-
|
|
235
|
+
print(weather)
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
### 2. Weather ASCII
|
|
@@ -1321,12 +1321,6 @@ autollama.main(model_path, gguf_file)
|
|
|
1321
1321
|
* The `model_path` in `autollama` is the Hugging Face model ID, and `gguf_file` is the GGUF file ID.
|
|
1322
1322
|
|
|
1323
1323
|
|
|
1324
|
-
## 🌐 `Webai` - Terminal GPT and an Open Interpreter
|
|
1325
|
-
|
|
1326
|
-
```bash
|
|
1327
|
-
python -m webscout.webai webai --provider "phind" --rawdog
|
|
1328
|
-
```
|
|
1329
|
-
|
|
1330
1324
|
<div align="center">
|
|
1331
1325
|
<!-- Replace `#` with your actual links -->
|
|
1332
1326
|
<a href="https://t.me/official_helpingai"><img alt="Telegram" src="https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
|
|
@@ -166,7 +166,7 @@ python -m webscout --help
|
|
|
166
166
|
```python
|
|
167
167
|
from webscout import weather as w
|
|
168
168
|
weather = w.get("Qazigund")
|
|
169
|
-
|
|
169
|
+
print(weather)
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
### 2. Weather ASCII
|
|
@@ -1255,12 +1255,6 @@ autollama.main(model_path, gguf_file)
|
|
|
1255
1255
|
* The `model_path` in `autollama` is the Hugging Face model ID, and `gguf_file` is the GGUF file ID.
|
|
1256
1256
|
|
|
1257
1257
|
|
|
1258
|
-
## 🌐 `Webai` - Terminal GPT and an Open Interpreter
|
|
1259
|
-
|
|
1260
|
-
```bash
|
|
1261
|
-
python -m webscout.webai webai --provider "phind" --rawdog
|
|
1262
|
-
```
|
|
1263
|
-
|
|
1264
1258
|
<div align="center">
|
|
1265
1259
|
<!-- Replace `#` with your actual links -->
|
|
1266
1260
|
<a href="https://t.me/official_helpingai"><img alt="Telegram" src="https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
|
|
@@ -16,7 +16,7 @@ from rich.columns import Columns
|
|
|
16
16
|
# Initialize Rich console with force terminal
|
|
17
17
|
console = Console(force_terminal=True)
|
|
18
18
|
|
|
19
|
-
def
|
|
19
|
+
def get_emoji(condition: str) -> str:
|
|
20
20
|
"""Get appropriate emoji for weather condition"""
|
|
21
21
|
conditions = {
|
|
22
22
|
'sunny': '*', 'clear': '*',
|
|
@@ -61,7 +61,7 @@ def create_current_weather_panel(data):
|
|
|
61
61
|
location_name = f"{location['areaName'][0]['value']}, {location['country'][0]['value']}"
|
|
62
62
|
|
|
63
63
|
weather_desc = current['weatherDesc'][0]['value']
|
|
64
|
-
symbol =
|
|
64
|
+
symbol = get_emoji(weather_desc)
|
|
65
65
|
|
|
66
66
|
# Create weather info table
|
|
67
67
|
table = Table(show_header=False, box=box.ROUNDED, expand=True)
|
|
@@ -98,7 +98,7 @@ def create_forecast_panel(data):
|
|
|
98
98
|
# Get mid-day conditions (noon)
|
|
99
99
|
noon = day['hourly'][4]
|
|
100
100
|
condition = noon['weatherDesc'][0]['value']
|
|
101
|
-
symbol =
|
|
101
|
+
symbol = get_emoji(condition)
|
|
102
102
|
temp_range = f"{day['mintempC']}° - {day['maxtempC']}°"
|
|
103
103
|
rain_chance = f"v {noon['chanceofrain']}%"
|
|
104
104
|
wind = f"> {noon['windspeedKmph']} km/h"
|
|
@@ -113,7 +113,7 @@ def create_forecast_panel(data):
|
|
|
113
113
|
|
|
114
114
|
return Panel(table, title="[bold]3-Day Forecast[/]", border_style="blue")
|
|
115
115
|
|
|
116
|
-
def
|
|
116
|
+
def get(location: str):
|
|
117
117
|
"""Get weather data with progress indicator"""
|
|
118
118
|
with Progress(
|
|
119
119
|
SpinnerColumn(),
|
|
@@ -159,7 +159,7 @@ def main():
|
|
|
159
159
|
console.print("\n[bold cyan]* Weather Information[/]\n")
|
|
160
160
|
location = console.input("[cyan]Enter location: [/]")
|
|
161
161
|
|
|
162
|
-
weather_data =
|
|
162
|
+
weather_data = get(location)
|
|
163
163
|
if weather_data:
|
|
164
164
|
display_weather(weather_data)
|
|
165
165
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from uuid import uuid4
|
|
3
|
+
import webscout
|
|
3
4
|
from webscout.AIutel import Optimizers
|
|
4
5
|
from webscout.AIutel import Conversation
|
|
5
6
|
from webscout.AIutel import AwesomePrompts, sanitize_stream
|
|
@@ -107,7 +108,7 @@ class Cloudflare(Provider):
|
|
|
107
108
|
'Sec-Fetch-Dest': 'empty',
|
|
108
109
|
'Sec-Fetch-Mode': 'cors',
|
|
109
110
|
'Sec-Fetch-Site': 'same-origin',
|
|
110
|
-
'User-Agent':
|
|
111
|
+
'User-Agent': webscout.LitAgent().random()
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
self.cookies = {
|
|
@@ -4,7 +4,7 @@ from webscout.AIutel import Optimizers
|
|
|
4
4
|
from webscout.AIutel import Conversation
|
|
5
5
|
from webscout.AIutel import AwesomePrompts, sanitize_stream
|
|
6
6
|
from webscout.AIbase import Provider
|
|
7
|
-
from webscout import exceptions
|
|
7
|
+
from webscout import exceptions, LitAgent
|
|
8
8
|
import requests
|
|
9
9
|
|
|
10
10
|
class DARKAI(Provider):
|
|
@@ -75,7 +75,7 @@ class DARKAI(Provider):
|
|
|
75
75
|
"sec-fetch-dest": "empty",
|
|
76
76
|
"sec-fetch-mode": "cors",
|
|
77
77
|
"sec-fetch-site": "cross-site",
|
|
78
|
-
"user-agent":
|
|
78
|
+
"user-agent": LitAgent().random(),
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
self.__available_optimizers = (
|
|
@@ -9,7 +9,7 @@ from webscout.AIutel import Conversation
|
|
|
9
9
|
from webscout.AIutel import AwesomePrompts
|
|
10
10
|
from webscout.AIbase import Provider
|
|
11
11
|
from webscout import exceptions
|
|
12
|
-
|
|
12
|
+
from webscout import LitAgent
|
|
13
13
|
|
|
14
14
|
class Free2GPT(Provider):
|
|
15
15
|
"""
|
|
@@ -48,7 +48,7 @@ class Free2GPT(Provider):
|
|
|
48
48
|
self.session = requests.Session()
|
|
49
49
|
self.is_conversation = is_conversation
|
|
50
50
|
self.max_tokens_to_sample = max_tokens
|
|
51
|
-
self.api_endpoint = "https://
|
|
51
|
+
self.api_endpoint = "https://chat1.free2gpt.com/api/generate"
|
|
52
52
|
self.stream_chunk_size = 64
|
|
53
53
|
self.timeout = timeout
|
|
54
54
|
self.last_response = {}
|
|
@@ -59,15 +59,15 @@ class Free2GPT(Provider):
|
|
|
59
59
|
"accept-language": "en-US,en;q=0.9,en-IN;q=0.8",
|
|
60
60
|
"content-type": "text/plain;charset=UTF-8",
|
|
61
61
|
"dnt": "1",
|
|
62
|
-
"origin": "https://
|
|
63
|
-
"referer": "https://
|
|
62
|
+
"origin": "https://chat1.free2gpt.co",
|
|
63
|
+
"referer": "https://chat1.free2gpt.co",
|
|
64
64
|
"sec-ch-ua": '"Chromium";v="128", "Not;A=Brand";v="24", "Microsoft Edge";v="128"',
|
|
65
65
|
"sec-ch-ua-mobile": "?0",
|
|
66
66
|
"sec-ch-ua-platform": '"Windows"',
|
|
67
67
|
"sec-fetch-dest": "empty",
|
|
68
68
|
"sec-fetch-mode": "cors",
|
|
69
69
|
"sec-fetch-site": "same-origin",
|
|
70
|
-
"user-agent":
|
|
70
|
+
"user-agent": LitAgent().random(),
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
self.__available_optimizers = (
|
|
@@ -7,7 +7,7 @@ from webscout.AIutel import Conversation
|
|
|
7
7
|
from webscout.AIutel import AwesomePrompts
|
|
8
8
|
from webscout.AIbase import Provider
|
|
9
9
|
from webscout import exceptions
|
|
10
|
-
|
|
10
|
+
from webscout import LitAgent as Lit
|
|
11
11
|
|
|
12
12
|
class Marcus(Provider):
|
|
13
13
|
"""
|
|
@@ -39,7 +39,7 @@ class Marcus(Provider):
|
|
|
39
39
|
'accept': '*/*',
|
|
40
40
|
'origin': 'https://www.askmarcus.app',
|
|
41
41
|
'referer': 'https://www.askmarcus.app/chat',
|
|
42
|
-
'user-agent':
|
|
42
|
+
'user-agent': Lit().random(),
|
|
43
43
|
}
|
|
44
44
|
self.__available_optimizers = (
|
|
45
45
|
method
|
|
@@ -134,4 +134,4 @@ if __name__ == '__main__':
|
|
|
134
134
|
ai = Marcus(timeout=30)
|
|
135
135
|
response = ai.chat("Tell me about India", stream=True)
|
|
136
136
|
for chunk in response:
|
|
137
|
-
print(chunk)
|
|
137
|
+
print(chunk, end="", flush=True)
|