webscout 8.2.6__py3-none-any.whl → 8.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.

Files changed (150) hide show
  1. webscout/AIauto.py +1 -1
  2. webscout/AIutel.py +298 -239
  3. webscout/Extra/Act.md +309 -0
  4. webscout/Extra/GitToolkit/gitapi/README.md +110 -0
  5. webscout/Extra/YTToolkit/README.md +375 -0
  6. webscout/Extra/YTToolkit/ytapi/README.md +44 -0
  7. webscout/Extra/YTToolkit/ytapi/extras.py +92 -19
  8. webscout/Extra/autocoder/autocoder.py +309 -114
  9. webscout/Extra/autocoder/autocoder_utiles.py +15 -15
  10. webscout/Extra/gguf.md +430 -0
  11. webscout/Extra/tempmail/README.md +488 -0
  12. webscout/Extra/weather.md +281 -0
  13. webscout/Litlogger/Readme.md +175 -0
  14. webscout/Provider/AISEARCH/DeepFind.py +41 -37
  15. webscout/Provider/AISEARCH/README.md +279 -0
  16. webscout/Provider/AISEARCH/__init__.py +0 -1
  17. webscout/Provider/AISEARCH/genspark_search.py +228 -86
  18. webscout/Provider/AISEARCH/hika_search.py +11 -11
  19. webscout/Provider/AISEARCH/scira_search.py +324 -322
  20. webscout/Provider/AllenAI.py +7 -14
  21. webscout/Provider/Blackboxai.py +518 -74
  22. webscout/Provider/Cloudflare.py +0 -1
  23. webscout/Provider/Deepinfra.py +23 -21
  24. webscout/Provider/Flowith.py +217 -0
  25. webscout/Provider/FreeGemini.py +250 -0
  26. webscout/Provider/GizAI.py +15 -5
  27. webscout/Provider/Glider.py +11 -8
  28. webscout/Provider/HeckAI.py +80 -52
  29. webscout/Provider/Koboldai.py +7 -4
  30. webscout/Provider/LambdaChat.py +2 -2
  31. webscout/Provider/Marcus.py +10 -18
  32. webscout/Provider/OPENAI/BLACKBOXAI.py +735 -0
  33. webscout/Provider/OPENAI/Cloudflare.py +378 -0
  34. webscout/Provider/OPENAI/FreeGemini.py +282 -0
  35. webscout/Provider/OPENAI/NEMOTRON.py +244 -0
  36. webscout/Provider/OPENAI/README.md +1253 -0
  37. webscout/Provider/OPENAI/__init__.py +8 -0
  38. webscout/Provider/OPENAI/ai4chat.py +293 -286
  39. webscout/Provider/OPENAI/api.py +810 -0
  40. webscout/Provider/OPENAI/base.py +217 -14
  41. webscout/Provider/OPENAI/c4ai.py +373 -367
  42. webscout/Provider/OPENAI/chatgpt.py +7 -0
  43. webscout/Provider/OPENAI/chatgptclone.py +7 -0
  44. webscout/Provider/OPENAI/chatsandbox.py +172 -0
  45. webscout/Provider/OPENAI/deepinfra.py +30 -20
  46. webscout/Provider/OPENAI/e2b.py +6 -0
  47. webscout/Provider/OPENAI/exaai.py +7 -0
  48. webscout/Provider/OPENAI/exachat.py +6 -0
  49. webscout/Provider/OPENAI/flowith.py +162 -0
  50. webscout/Provider/OPENAI/freeaichat.py +359 -352
  51. webscout/Provider/OPENAI/glider.py +323 -316
  52. webscout/Provider/OPENAI/groq.py +361 -354
  53. webscout/Provider/OPENAI/heckai.py +30 -64
  54. webscout/Provider/OPENAI/llmchatco.py +8 -0
  55. webscout/Provider/OPENAI/mcpcore.py +7 -0
  56. webscout/Provider/OPENAI/multichat.py +8 -0
  57. webscout/Provider/OPENAI/netwrck.py +356 -350
  58. webscout/Provider/OPENAI/opkfc.py +8 -0
  59. webscout/Provider/OPENAI/scirachat.py +471 -462
  60. webscout/Provider/OPENAI/sonus.py +9 -0
  61. webscout/Provider/OPENAI/standardinput.py +9 -1
  62. webscout/Provider/OPENAI/textpollinations.py +339 -329
  63. webscout/Provider/OPENAI/toolbaz.py +7 -0
  64. webscout/Provider/OPENAI/typefully.py +355 -0
  65. webscout/Provider/OPENAI/typegpt.py +358 -346
  66. webscout/Provider/OPENAI/uncovrAI.py +7 -0
  67. webscout/Provider/OPENAI/utils.py +103 -7
  68. webscout/Provider/OPENAI/venice.py +12 -0
  69. webscout/Provider/OPENAI/wisecat.py +19 -19
  70. webscout/Provider/OPENAI/writecream.py +7 -0
  71. webscout/Provider/OPENAI/x0gpt.py +7 -0
  72. webscout/Provider/OPENAI/yep.py +50 -21
  73. webscout/Provider/OpenGPT.py +1 -1
  74. webscout/Provider/TTI/AiForce/README.md +159 -0
  75. webscout/Provider/TTI/FreeAIPlayground/README.md +99 -0
  76. webscout/Provider/TTI/ImgSys/README.md +174 -0
  77. webscout/Provider/TTI/MagicStudio/README.md +101 -0
  78. webscout/Provider/TTI/Nexra/README.md +155 -0
  79. webscout/Provider/TTI/PollinationsAI/README.md +146 -0
  80. webscout/Provider/TTI/README.md +128 -0
  81. webscout/Provider/TTI/aiarta/README.md +134 -0
  82. webscout/Provider/TTI/artbit/README.md +100 -0
  83. webscout/Provider/TTI/fastflux/README.md +129 -0
  84. webscout/Provider/TTI/huggingface/README.md +114 -0
  85. webscout/Provider/TTI/piclumen/README.md +161 -0
  86. webscout/Provider/TTI/pixelmuse/README.md +79 -0
  87. webscout/Provider/TTI/talkai/README.md +139 -0
  88. webscout/Provider/TTS/README.md +192 -0
  89. webscout/Provider/TTS/__init__.py +2 -1
  90. webscout/Provider/TTS/speechma.py +500 -100
  91. webscout/Provider/TTS/sthir.py +94 -0
  92. webscout/Provider/TeachAnything.py +3 -7
  93. webscout/Provider/TextPollinationsAI.py +4 -2
  94. webscout/Provider/{aimathgpt.py → UNFINISHED/ChatHub.py} +88 -68
  95. webscout/Provider/UNFINISHED/liner_api_request.py +263 -0
  96. webscout/Provider/UNFINISHED/oivscode.py +351 -0
  97. webscout/Provider/UNFINISHED/test_lmarena.py +119 -0
  98. webscout/Provider/Writecream.py +11 -2
  99. webscout/Provider/__init__.py +8 -14
  100. webscout/Provider/ai4chat.py +4 -58
  101. webscout/Provider/asksteve.py +17 -9
  102. webscout/Provider/cerebras.py +3 -1
  103. webscout/Provider/koala.py +170 -268
  104. webscout/Provider/llmchat.py +3 -0
  105. webscout/Provider/lmarena.py +198 -0
  106. webscout/Provider/meta.py +7 -4
  107. webscout/Provider/samurai.py +223 -0
  108. webscout/Provider/scira_chat.py +4 -2
  109. webscout/Provider/typefully.py +23 -151
  110. webscout/__init__.py +4 -2
  111. webscout/cli.py +3 -28
  112. webscout/conversation.py +35 -35
  113. webscout/litagent/Readme.md +276 -0
  114. webscout/scout/README.md +402 -0
  115. webscout/swiftcli/Readme.md +323 -0
  116. webscout/version.py +1 -1
  117. webscout/webscout_search.py +2 -182
  118. webscout/webscout_search_async.py +1 -179
  119. webscout/zeroart/README.md +89 -0
  120. webscout/zeroart/__init__.py +134 -54
  121. webscout/zeroart/base.py +19 -13
  122. webscout/zeroart/effects.py +101 -99
  123. webscout/zeroart/fonts.py +1239 -816
  124. {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/METADATA +116 -74
  125. {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/RECORD +130 -103
  126. {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/WHEEL +1 -1
  127. webscout-8.2.8.dist-info/entry_points.txt +3 -0
  128. webscout-8.2.8.dist-info/top_level.txt +1 -0
  129. webscout/Provider/AISEARCH/ISou.py +0 -256
  130. webscout/Provider/ElectronHub.py +0 -773
  131. webscout/Provider/Free2GPT.py +0 -241
  132. webscout/Provider/GPTWeb.py +0 -249
  133. webscout/Provider/bagoodex.py +0 -145
  134. webscout/Provider/geminiprorealtime.py +0 -160
  135. webscout/scout/core.py +0 -881
  136. webscout-8.2.6.dist-info/entry_points.txt +0 -3
  137. webscout-8.2.6.dist-info/top_level.txt +0 -2
  138. webstoken/__init__.py +0 -30
  139. webstoken/classifier.py +0 -189
  140. webstoken/keywords.py +0 -216
  141. webstoken/language.py +0 -128
  142. webstoken/ner.py +0 -164
  143. webstoken/normalizer.py +0 -35
  144. webstoken/processor.py +0 -77
  145. webstoken/sentiment.py +0 -206
  146. webstoken/stemmer.py +0 -73
  147. webstoken/tagger.py +0 -60
  148. webstoken/tokenizer.py +0 -158
  149. /webscout/Provider/{Youchat.py → UNFINISHED/Youchat.py} +0 -0
  150. {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/licenses/LICENSE.md +0 -0
@@ -0,0 +1,375 @@
1
+ <div align="center">
2
+ <a href="https://github.com/OEvortex/Webscout">
3
+ <img src="https://img.shields.io/badge/YTToolkit-YouTube%20Toolkit-red?style=for-the-badge&logo=youtube&logoColor=white" alt="YTToolkit Logo">
4
+ </a>
5
+ <h1>YTToolkit</h1>
6
+ <p><strong>Comprehensive YouTube Toolkit for Downloading, Transcription, and Data Extraction</strong></p>
7
+
8
+ <!-- Badges -->
9
+ <p>
10
+ <a href="https://pypi.org/project/webscout/"><img src="https://img.shields.io/pypi/v/webscout.svg?style=flat-square&logo=pypi&label=PyPI" alt="PyPI Version"></a>
11
+ <a href="#"><img src="https://img.shields.io/badge/No%20API%20Key-Required-success?style=flat-square" alt="No API Key Required"></a>
12
+ <a href="#"><img src="https://img.shields.io/badge/Python-3.7%2B-blue?style=flat-square&logo=python" alt="Python Version"></a>
13
+ </p>
14
+ </div>
15
+
16
+ > [!NOTE]
17
+ > YTToolkit provides a complete suite of YouTube tools including video downloading, transcript extraction, and comprehensive data retrieval - all without requiring an official API key.
18
+
19
+ ## ✨ Features
20
+
21
+ ### Video Management
22
+
23
+ * **Advanced Video Downloading**
24
+ * Multiple format support (MP4, MP3)
25
+ * Customizable quality selection (up to 4K)
26
+ * Progress tracking and auto-save functionality
27
+ * Batch downloading with search capabilities
28
+
29
+ * **Transcript Extraction**
30
+ * Multi-language transcript support
31
+ * Automatic and manual transcript fetching
32
+ * Real-time translation capabilities
33
+ * Flexible parsing options
34
+
35
+ ### Data Extraction
36
+
37
+ * **Channel Information**
38
+ * Comprehensive channel metadata
39
+ * Subscriber count, views, and engagement metrics
40
+ * Avatar and banner image URLs
41
+ * Social media links and about information
42
+
43
+ * **Video Intelligence**
44
+ * Detailed video metadata retrieval
45
+ * Thumbnail extraction in multiple resolutions
46
+ * Stream and upload history tracking
47
+ * Embed code generation
48
+
49
+ * **Search & Discovery**
50
+ * Advanced search capabilities
51
+ * Trending videos across categories
52
+ * Playlist content extraction
53
+ * No official API dependency
54
+
55
+ ## 🚀 Installation
56
+
57
+ ```bash
58
+ pip install -U webscout
59
+ ```
60
+
61
+ ## 💻 Quick Start Guide
62
+
63
+ ### Video Downloading
64
+
65
+ ```python
66
+ from webscout import Handler
67
+
68
+ # Basic video download
69
+ downloader = Handler('https://youtube.com/watch?v=dQw4w9WgXcQ')
70
+ downloader.save()
71
+
72
+ # Advanced download with custom settings
73
+ downloader = Handler(
74
+ query='python tutorial', # Search query
75
+ format='mp4', # Format (mp4, mp3)
76
+ quality='720p', # Quality (144p to 4K)
77
+ limit=5 # Number of videos to download
78
+ )
79
+ downloader.auto_save(dir='./downloads')
80
+ ```
81
+
82
+ ### Transcript Extraction
83
+
84
+ ```python
85
+ from webscout import YTTranscriber
86
+
87
+ # Get video transcript
88
+ transcript = YTTranscriber.get_transcript('https://youtube.com/watch?v=dQw4w9WgXcQ')
89
+ print(transcript)
90
+
91
+ # Get transcript in a specific language
92
+ spanish_transcript = YTTranscriber.get_transcript(
93
+ 'dQw4w9WgXcQ', # Video ID or URL
94
+ languages='es' # Language code
95
+ )
96
+
97
+ # Translate transcript
98
+ translated = YTTranscriber.translate_transcript(
99
+ 'dQw4w9WgXcQ', # Video ID or URL
100
+ source_lang='en',
101
+ target_lang='fr'
102
+ )
103
+ ```
104
+
105
+ ### Channel Information
106
+
107
+ ```python
108
+ from webscout import Channel
109
+
110
+ # Create a channel instance
111
+ channel = Channel('@PewDiePie') # Handle, ID, or URL
112
+
113
+ # Access channel metadata
114
+ print(f"Channel: {channel.name}")
115
+ print(f"Subscribers: {channel.subscribers}")
116
+ print(f"Total Views: {channel.views}")
117
+ print(f"Country: {channel.country}")
118
+
119
+ # Get media URLs
120
+ print(f"Avatar: {channel.avatar}")
121
+ print(f"Banner: {channel.banner}")
122
+
123
+ # Get recent uploads
124
+ recent_videos = channel.uploads(10) # 10 most recent videos
125
+ ```
126
+
127
+ ### Video Metadata
128
+
129
+ ```python
130
+ from webscout import Video
131
+
132
+ # Get video information
133
+ video = Video('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
134
+ metadata = video.metadata
135
+
136
+ print(f"Title: {metadata['title']}")
137
+ print(f"Views: {metadata['views']}")
138
+ print(f"Duration: {metadata['duration']} seconds")
139
+ print(f"Upload Date: {metadata['upload_date']}")
140
+
141
+ # Get thumbnails
142
+ thumbnails = video.thumbnail_urls
143
+ print(f"Default thumbnail: {thumbnails['default']}")
144
+ print(f"High quality: {thumbnails['high']}")
145
+ ```
146
+
147
+ ### Search & Trending
148
+
149
+ ```python
150
+ from webscout import Search, Extras
151
+
152
+ # Search for videos
153
+ video_results = Search.videos("Python tutorial", limit=5)
154
+
155
+ # Search for channels
156
+ channel_results = Search.channels("coding", limit=3)
157
+
158
+ # Get trending videos
159
+ trending = Extras.trending_videos(limit=10)
160
+
161
+ # Get category-specific videos
162
+ music_videos = Extras.music_videos(limit=5)
163
+ gaming_videos = Extras.gaming_videos(limit=5)
164
+ ```
165
+
166
+ ## 📓 Detailed Documentation
167
+
168
+ <details>
169
+ <summary><strong>Video Downloader (Handler)</strong></summary>
170
+
171
+ The `Handler` class provides powerful video downloading capabilities:
172
+
173
+ ```python
174
+ from webscout import Handler
175
+
176
+ # Initialize with video URL or search query
177
+ downloader = Handler('https://youtube.com/watch?v=dQw4w9WgXcQ')
178
+
179
+ # Basic download with default settings
180
+ downloader.save() # Saves to current directory
181
+
182
+ # Download with custom settings
183
+ downloader.save(
184
+ filename='custom_name', # Custom filename
185
+ format='mp3', # Format (mp4, mp3)
186
+ quality='highest', # Quality setting
187
+ output_path='./videos' # Output directory
188
+ )
189
+
190
+ # Batch download from search
191
+ batch_downloader = Handler(
192
+ query='python tutorials',
193
+ limit=5, # Number of videos
194
+ format='mp4',
195
+ quality='720p'
196
+ )
197
+ batch_downloader.auto_save()
198
+
199
+ # Get download progress
200
+ progress = downloader.progress
201
+ print(f"Download progress: {progress}%")
202
+
203
+ # Get download history
204
+ history = downloader.history
205
+ print(f"Downloaded files: {history}")
206
+ ```
207
+ </details>
208
+
209
+ <details>
210
+ <summary><strong>Transcript Retriever (YTTranscriber)</strong></summary>
211
+
212
+ The `YTTranscriber` class extracts and processes video transcripts:
213
+
214
+ ```python
215
+ from webscout import YTTranscriber
216
+
217
+ # Get available transcript languages
218
+ languages = YTTranscriber.get_available_languages('dQw4w9WgXcQ')
219
+ print(f"Available languages: {languages}")
220
+
221
+ # Get transcript with specific options
222
+ transcript = YTTranscriber.get_transcript(
223
+ 'dQw4w9WgXcQ',
224
+ languages=['en', 'es', 'fr'], # Preferred languages in order
225
+ translate=True, # Auto-translate if needed
226
+ format='text' # Format: 'text', 'json', or 'srt'
227
+ )
228
+
229
+ # Get transcript with timestamps
230
+ timestamped = YTTranscriber.get_transcript(
231
+ 'dQw4w9WgXcQ',
232
+ include_timestamps=True
233
+ )
234
+ for entry in timestamped:
235
+ print(f"[{entry['start']:.2f}s] {entry['text']}")
236
+
237
+ # Save transcript to file
238
+ YTTranscriber.save_transcript(
239
+ 'dQw4w9WgXcQ',
240
+ output_file='transcript.txt',
241
+ format='text'
242
+ )
243
+ ```
244
+ </details>
245
+
246
+ <details>
247
+ <summary><strong>Channel Class</strong></summary>
248
+
249
+ The `Channel` class provides comprehensive access to YouTube channel data:
250
+
251
+ ```python
252
+ from webscout import Channel
253
+
254
+ # Initialize with channel handle, ID, or URL
255
+ channel = Channel('@PewDiePie')
256
+
257
+ # Basic information
258
+ print(f"Name: {channel.name}")
259
+ print(f"ID: {channel.id}")
260
+ print(f"Subscribers: {channel.subscribers}")
261
+ print(f"Total Views: {channel.views}")
262
+ print(f"Country: {channel.country}")
263
+
264
+ # Media URLs
265
+ print(f"Avatar: {channel.avatar}")
266
+ print(f"Banner: {channel.banner}")
267
+ print(f"URL: {channel.url}")
268
+
269
+ # Content
270
+ print(f"Description: {channel.description}")
271
+ print(f"Social Links: {channel.socials}")
272
+
273
+ # Live status
274
+ if channel.live:
275
+ print(f"Currently streaming: {channel.streaming_now}")
276
+
277
+ # Get videos
278
+ recent_uploads = channel.uploads(20) # Get 20 most recent videos
279
+ ```
280
+ </details>
281
+
282
+ <details>
283
+ <summary><strong>Video Class</strong></summary>
284
+
285
+ The `Video` class extracts detailed information about YouTube videos:
286
+
287
+ ```python
288
+ from webscout import Video
289
+
290
+ # Initialize with video ID or URL
291
+ video = Video('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
292
+
293
+ # Get comprehensive metadata
294
+ metadata = video.metadata
295
+ print(f"Title: {metadata['title']}")
296
+ print(f"Views: {metadata['views']}")
297
+ print(f"Duration: {metadata['duration']} seconds")
298
+ print(f"Upload Date: {metadata['upload_date']}")
299
+ print(f"Author ID: {metadata['author_id']}")
300
+ print(f"Tags: {metadata['tags']}")
301
+
302
+ # Get thumbnails in different resolutions
303
+ thumbnails = video.thumbnail_urls
304
+ print(f"Default thumbnail: {thumbnails['default']}")
305
+ print(f"High quality thumbnail: {thumbnails['high']}")
306
+ print(f"Maximum resolution thumbnail: {thumbnails['maxres']}")
307
+
308
+ # Get embed code and URL
309
+ print(f"Embed HTML: {video.embed_html}")
310
+ print(f"Embed URL: {video.embed_url}")
311
+ ```
312
+ </details>
313
+
314
+ <details>
315
+ <summary><strong>Search & Extras Classes</strong></summary>
316
+
317
+ The `Search` and `Extras` classes provide discovery capabilities:
318
+
319
+ ```python
320
+ from webscout import Search, Extras
321
+
322
+ # Search for videos with advanced options
323
+ video_results = Search.videos(
324
+ "Python tutorial",
325
+ limit=5, # Number of results
326
+ sort_by="relevance", # Sort order
327
+ filter_by="video" # Filter type
328
+ )
329
+
330
+ # Search for channels
331
+ channel_results = Search.channels("coding", limit=3)
332
+
333
+ # Search for playlists
334
+ playlist_results = Search.playlists("music mix", limit=3)
335
+
336
+ # Get trending videos by region
337
+ trending = Extras.trending_videos(
338
+ limit=10,
339
+ region="US" # Country code
340
+ )
341
+
342
+ # Get category-specific videos
343
+ music = Extras.music_videos(limit=5)
344
+ gaming = Extras.gaming_videos(limit=5)
345
+ ```
346
+ </details>
347
+
348
+ ## 📚 Module Structure
349
+
350
+ | Module | File | Description |
351
+ |--------|------|-------------|
352
+ | **Video Downloader** | [`YTdownloader.py`](YTdownloader.py) | YouTube video downloading with format and quality options |
353
+ | **Transcript Retriever** | [`transcriber.py`](transcriber.py) | Multi-language transcript extraction and translation |
354
+ | **Channel Data** | [`ytapi/channel.py`](ytapi/channel.py) | Channel metadata and interaction |
355
+ | **Video Information** | [`ytapi/video.py`](ytapi/video.py) | Video information extraction |
356
+ | **Search** | [`ytapi/query.py`](ytapi/query.py) | Advanced search capabilities |
357
+ | **Trending** | [`ytapi/extras.py`](ytapi/extras.py) | Trending and category-based video retrieval |
358
+ | **Playlists** | [`ytapi/playlist.py`](ytapi/playlist.py) | Playlist metadata extraction |
359
+
360
+ ## ⚠️ Disclaimer
361
+
362
+ > [!WARNING]
363
+ > This toolkit is designed for educational and research purposes only. Please use responsibly and in accordance with YouTube's terms of service. The developers are not responsible for any misuse of this software.
364
+
365
+ ## 🤝 Contributing
366
+
367
+ Contributions are welcome! Please feel free to submit a Pull Request.
368
+
369
+ <div align="center">
370
+ <p>
371
+ <a href="https://t.me/PyscoutAI"><img alt="Telegram Group" src="https://img.shields.io/badge/Telegram%20Group-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
372
+ <a href="https://youtube.com/@OEvortex"><img alt="YouTube" src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white"></a>
373
+ <a href="https://buymeacoffee.com/oevortex"><img alt="Buy Me A Coffee" src="https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?style=for-the-badge&logo=buymeacoffee&logoColor=black"></a>
374
+ </p>
375
+ </div>
@@ -0,0 +1,44 @@
1
+ <div align="center">
2
+ <a href="https://github.com/OEvortex/Webscout">
3
+ <img src="https://img.shields.io/badge/YTToolkit-YouTube%20Data%20API-red?style=for-the-badge&logo=youtube&logoColor=white" alt="YTToolkit Logo">
4
+ </a>
5
+ <h1>YouTube Data API</h1>
6
+ <p><strong>Extract YouTube data without official API keys</strong></p>
7
+ </div>
8
+
9
+ > [!NOTE]
10
+ > This documentation has been merged into the main [YTToolkit README](../README.md).
11
+ > Please refer to the main documentation for comprehensive information about all YTToolkit features.
12
+
13
+ ## Quick Links
14
+
15
+ - [Installation & Setup](../README.md#-installation)
16
+ - [Channel Information](../README.md#channel-information)
17
+ - [Video Metadata](../README.md#video-metadata)
18
+ - [Search & Trending](../README.md#search--trending)
19
+ - [Detailed Documentation](../README.md#-detailed-documentation)
20
+
21
+ ## Module Overview
22
+
23
+ | Module | File | Description |
24
+ |--------|------|-------------|
25
+ | **Channel** | [`channel.py`](channel.py) | Channel metadata and interaction |
26
+ | **Video** | [`video.py`](video.py) | Video information extraction |
27
+ | **Search** | [`query.py`](query.py) | Advanced search capabilities |
28
+ | **Extras** | [`extras.py`](extras.py) | Trending and category-based video retrieval |
29
+ | **Playlist** | [`playlist.py`](playlist.py) | Playlist metadata extraction |
30
+
31
+ ## Key Features
32
+
33
+ - **No API Key Required**: Extract YouTube data without official API keys
34
+ - **Channel Information**: Subscribers, views, description, avatars, banners
35
+ - **Video Metadata**: Title, views, duration, thumbnails, embed codes
36
+ - **Search Capabilities**: Find videos, channels, and playlists
37
+ - **Trending Content**: Access trending videos across categories
38
+
39
+ <div align="center">
40
+ <p>
41
+ <a href="https://t.me/PyscoutAI"><img alt="Telegram Group" src="https://img.shields.io/badge/Telegram%20Group-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
42
+ <a href="https://youtube.com/@OEvortex"><img alt="YouTube" src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white"></a>
43
+ </p>
44
+ </div>
@@ -15,31 +15,104 @@ from typing import Optional, List
15
15
  class Extras:
16
16
 
17
17
  @staticmethod
18
- def trending_videos() -> Optional[List[str]]:
18
+ def trending_videos(limit: int = None) -> Optional[List[str]]:
19
+ """
20
+ Get trending videos from YouTube.
21
+
22
+ Args:
23
+ limit (int, optional): Maximum number of videos to return.
24
+ Alternatively, manual slicing can be used:
25
+ Extras.trending_videos()[:5]
26
+
27
+ Returns:
28
+ Optional[List[str]]: List of video IDs or None if no videos found
29
+ """
19
30
  data = Patterns.video_id.findall(trending_videos())
20
- return dup_filter(data) if data else None
31
+ return dup_filter(data, limit) if data else None
21
32
 
22
33
  @staticmethod
23
- def music_videos() -> Optional[List[str]]:
34
+ def music_videos(limit: int = None) -> Optional[List[str]]:
35
+ """
36
+ Get trending music videos from YouTube.
37
+
38
+ Args:
39
+ limit (int, optional): Maximum number of videos to return.
40
+ Alternatively, manual slicing can be used:
41
+ Extras.music_videos()[:5]
42
+
43
+ Returns:
44
+ Optional[List[str]]: List of video IDs or None if no videos found
45
+ """
24
46
  data = Patterns.video_id.findall(trending_songs())
25
- return dup_filter(data) if data else None
26
-
27
- @staticmethod
28
- def gaming_videos() -> Optional[List[str]]:
29
- return dup_filter(Patterns.video_id.findall(trending_games()))
30
-
31
- @staticmethod
32
- def news_videos() -> Optional[List[str]]:
33
- return dup_filter(Patterns.video_id.findall(trending_feeds()))
34
-
47
+ return dup_filter(data, limit) if data else None @staticmethod
48
+ def gaming_videos(limit: int = None) -> Optional[List[str]]:
49
+ """
50
+ Get trending gaming videos from YouTube.
51
+
52
+ Args:
53
+ limit (int, optional): Maximum number of videos to return.
54
+ Alternatively, manual slicing can be used:
55
+ Extras.gaming_videos()[:5]
56
+
57
+ Returns:
58
+ Optional[List[str]]: List of video IDs or None if no videos found
59
+ """
60
+ return dup_filter(Patterns.video_id.findall(trending_games()), limit)
61
+
35
62
  @staticmethod
36
- def live_videos() -> Optional[List[str]]:
37
- return dup_filter(Patterns.video_id.findall(trending_streams()))
63
+ def news_videos(limit: int = None) -> Optional[List[str]]:
64
+ """
65
+ Get trending news videos from YouTube.
66
+
67
+ Args:
68
+ limit (int, optional): Maximum number of videos to return.
69
+ Alternatively, manual slicing can be used:
70
+ Extras.news_videos()[:5]
71
+
72
+ Returns:
73
+ Optional[List[str]]: List of video IDs or None if no videos found
74
+ """
75
+ return dup_filter(Patterns.video_id.findall(trending_feeds()), limit) @staticmethod
76
+ def live_videos(limit: int = None) -> Optional[List[str]]:
77
+ """
78
+ Get trending live videos from YouTube.
79
+
80
+ Args:
81
+ limit (int, optional): Maximum number of videos to return.
82
+ Alternatively, manual slicing can be used:
83
+ Extras.live_videos()[:5]
84
+
85
+ Returns:
86
+ Optional[List[str]]: List of video IDs or None if no videos found
87
+ """
88
+ return dup_filter(Patterns.video_id.findall(trending_streams()), limit)
38
89
 
39
90
  @staticmethod
40
- def educational_videos() -> Optional[List[str]]:
41
- return dup_filter(Patterns.video_id.findall(_get_trending_learning_videos()))
91
+ def educational_videos(limit: int = None) -> Optional[List[str]]:
92
+ """
93
+ Get trending educational videos from YouTube.
94
+
95
+ Args:
96
+ limit (int, optional): Maximum number of videos to return.
97
+ Alternatively, manual slicing can be used:
98
+ Extras.educational_videos()[:5]
99
+
100
+ Returns:
101
+ Optional[List[str]]: List of video IDs or None if no videos found
102
+ """
103
+ return dup_filter(Patterns.video_id.findall(_get_trending_learning_videos()), limit)
42
104
 
43
105
  @staticmethod
44
- def sport_videos() -> Optional[List[str]]:
45
- return dup_filter(Patterns.video_id.findall(trending_sports()))
106
+ def sport_videos(limit: int = None) -> Optional[List[str]]:
107
+ """
108
+ Get trending sports videos from YouTube.
109
+
110
+ Args:
111
+ limit (int, optional): Maximum number of videos to return.
112
+ Alternatively, manual slicing can be used:
113
+ Extras.sport_videos()[:5]
114
+
115
+ Returns:
116
+ Optional[List[str]]: List of video IDs or None if no videos found
117
+ """
118
+ return dup_filter(Patterns.video_id.findall(trending_sports()), limit)