
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A fast, lightweight Python library for extracting information from YouTube without requiring API keys
A fast, lightweight Python library for extracting information from YouTube without requiring API keys or authentication.
pip install ytbpy
git clone https://github.com/tn3w/ytbpy.git
cd ytbpy
pip install -e .
from ytbpy import video
# Get details about a video using URL or ID
video_info = video.get_video_info('https://www.youtube.com/watch?v=rZ6luwT8kuc')
# OR
video_info = video.get_video_info('rZ6luwT8kuc')
print(video_info['title'])
print(video_info['duration'])
print(video_info['views_count'])
from ytbpy import video
# Get details about a video using URL or ID
video_info = video.get_video_info_oembed('https://www.youtube.com/watch?v=rZ6luwT8kuc')
# OR
video_info = video.get_video_info_oembed('rZ6luwT8kuc')
print(video_info['title'])
from ytbpy import search
# Search YouTube videos
results = search.search_youtube('python tutorial', max_results=5)
for video in results:
print(f"{video['title']} - {video['url']}")
from ytbpy import playlist
# Get all videos in a playlist
playlist_info = playlist.get_playlist_info('https://www.youtube.com/playlist?list=PLOU2XLYxmsIJQPs-2nnII-n59vYoxKsmq')
print(f"Playlist: {playlist_info['title']}")
print(f"Videos: {playlist_info['video_count']}")
for video in playlist_info['videos']:
print(video['title'])
from ytbpy import channel
# Get channel info and recent videos
channel_info = channel.get_channel_info('https://www.youtube.com/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw')
print(f"Channel: {channel_info['title']}")
print(f"Subscribers: {channel_info['subscriber_count']}")
# List recent videos
for video in channel_info['videos']:
print(video['title'])
Copyright 2025 TN3W
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
A fast, lightweight Python library for extracting information from YouTube without requiring API keys
We found that ytbpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.