webscout 1.2.6__py3-none-any.whl → 1.2.8__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/transcriber.py +0 -1
- webscout/version.py +1 -1
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/METADATA +12 -6
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/RECORD +8 -8
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/LICENSE.md +0 -0
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/WHEEL +0 -0
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/entry_points.txt +0 -0
- {webscout-1.2.6.dist-info → webscout-1.2.8.dist-info}/top_level.txt +0 -0
webscout/transcriber.py
CHANGED
|
@@ -27,7 +27,6 @@ class TranscriptRetrievalError(Exception):
|
|
|
27
27
|
'https://github.com/OE-LUCIFER/Webscout/issues. '
|
|
28
28
|
'Please add which version of youtube_transcript_api you are using '
|
|
29
29
|
'and provide the information needed to replicate the error. '
|
|
30
|
-
'Also make sure that there are no open issues which already describe your problem!'
|
|
31
30
|
)
|
|
32
31
|
|
|
33
32
|
def __init__(self, video_id):
|
webscout/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.8"
|
|
2
2
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.8
|
|
4
4
|
Summary: Search for words, documents, images, videos, news, maps and text translation using the Google, DuckDuckGo.com, yep.com, phind.com, you.com, etc Also containes AI models and now can transcribe yt videos
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
@@ -229,17 +229,23 @@ def extract_transcript(video_id):
|
|
|
229
229
|
try:
|
|
230
230
|
transcript_list = transcriber.list_transcripts(video_id)
|
|
231
231
|
for transcript in transcript_list:
|
|
232
|
-
|
|
232
|
+
transcript_data_list = transcript.fetch()
|
|
233
233
|
lang = transcript.language
|
|
234
234
|
transcript_text = ""
|
|
235
235
|
if transcript.language_code == 'en':
|
|
236
|
-
for line in
|
|
237
|
-
|
|
236
|
+
for line in transcript_data_list:
|
|
237
|
+
start_time = line['start']
|
|
238
|
+
end_time = start_time + line['duration']
|
|
239
|
+
formatted_line = f"{start_time:.2f} - {end_time:.2f}: {line['text']}\n"
|
|
240
|
+
transcript_text += formatted_line
|
|
238
241
|
return transcript_text
|
|
239
242
|
elif transcript.is_translatable:
|
|
240
243
|
english_transcript_list = transcript.translate('en').fetch()
|
|
241
244
|
for line in english_transcript_list:
|
|
242
|
-
|
|
245
|
+
start_time = line['start']
|
|
246
|
+
end_time = start_time + line['duration']
|
|
247
|
+
formatted_line = f"{start_time:.2f} - {end_time:.2f}: {line['text']}\n"
|
|
248
|
+
transcript_text += formatted_line
|
|
243
249
|
return transcript_text
|
|
244
250
|
print("Transcript extraction failed. Please check the video URL.")
|
|
245
251
|
except Exception as e:
|
|
@@ -685,6 +691,6 @@ def chat(model_name, system_message="You are Jarvis"):# system prompt
|
|
|
685
691
|
AI.chat()
|
|
686
692
|
|
|
687
693
|
if __name__ == "__main__":
|
|
688
|
-
model_name = "mistralai/Mistral-7B-Instruct-v0.
|
|
694
|
+
model_name = "mistralai/Mistral-7B-Instruct-v0.2" # name of the model you wish to use It supports ALL text generation models on deepinfra.com.
|
|
689
695
|
chat(model_name)
|
|
690
696
|
```
|
|
@@ -21,14 +21,14 @@ webscout/__main__.py,sha256=ZtTRgsRjUi2JOvYFLF1ZCh55Sdoz94I-BS-TlJC7WDU,126
|
|
|
21
21
|
webscout/cli.py,sha256=F888fdrFUQgczMBN4yMOSf6Nh-IbvkqpPhDsbnA2FtQ,17059
|
|
22
22
|
webscout/exceptions.py,sha256=4AOO5wexeL96nvUS-badcckcwrPS7UpZyAgB9vknHZE,276
|
|
23
23
|
webscout/models.py,sha256=5iQIdtedT18YuTZ3npoG7kLMwcrKwhQ7928dl_7qZW0,692
|
|
24
|
-
webscout/transcriber.py,sha256=
|
|
24
|
+
webscout/transcriber.py,sha256=9bVOZM0qEB1vNMWi0jYOz3fyANOa074a1LoVLc5CqjM,20140
|
|
25
25
|
webscout/utils.py,sha256=c_98M4oqpb54pUun3fpGGlCerFD6ZHUbghyp5b7Mwgo,2605
|
|
26
|
-
webscout/version.py,sha256=
|
|
26
|
+
webscout/version.py,sha256=puj4MVZBpxxRHmlkcRMUF647dLUn9wDCGFWlFd1NdI4,25
|
|
27
27
|
webscout/webscout_search.py,sha256=3_lli-hDb8_kCGwscK29xuUcOS833ROgpNhDzrxh0dk,3085
|
|
28
28
|
webscout/webscout_search_async.py,sha256=Y5frH0k3hLqBCR-8dn7a_b7EvxdYxn6wHiKl3jWosE0,40670
|
|
29
|
-
webscout-1.2.
|
|
30
|
-
webscout-1.2.
|
|
31
|
-
webscout-1.2.
|
|
32
|
-
webscout-1.2.
|
|
33
|
-
webscout-1.2.
|
|
34
|
-
webscout-1.2.
|
|
29
|
+
webscout-1.2.8.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
|
|
30
|
+
webscout-1.2.8.dist-info/METADATA,sha256=1abZPJdFOk-ymqDXMQTl_SvAqlhI-EtLhGFnoW1BPAA,24659
|
|
31
|
+
webscout-1.2.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
32
|
+
webscout-1.2.8.dist-info/entry_points.txt,sha256=8-93eRslYrzTHs5E-6yFRJrve00C9q-SkXJD113jzRY,197
|
|
33
|
+
webscout-1.2.8.dist-info/top_level.txt,sha256=OD5YKy6Y3hldL7SmuxsiEDxAG4LgdSSWwzYk22MF9fk,18
|
|
34
|
+
webscout-1.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|