![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Simple command line utility and API for downloading YouTube thumbnails.
Supports JPEG and WebP formats in all sizes. Previews (animated thumbnails) are not supported due to the lack of direct URL or API access.
Requires Python 3.6+
Install via pip:
$ pip install pythumb
Or get binaries from the latest release.
python
instead of python3
on WindowsDownload source code from the latest release, extract and cd
into it.
(Optional) Create a virtual environment to manage packages easier.
Update pip and setuptools:
$ python3 -m pip install -U pip setuptools
Install this package:
$ python3 -m pip install .
Optionally you can build a standalone executable.
Prerequisites:
On Linux install python3-dev:
$ sudo apt install python3-dev
Install PyInstaller:
$ python3 -m pip install pyinstaller
Run the build script for your OS:
$ chmod +x ./scripts/build.sh
$ ./scripts/build.sh <win / linux>
You can find the executable in ./pyi-dist/
.
$ pythumb [options] <input>
To save a thumbnail to the current directory, simply pass the video URL or 11-character ID (recommended quoted):
$ pythumb "https://youtu.be/aqz-KE-bpKQ"
# or
$ pythumb "aqz-KE-bpKQ"
Use --help
for more details.
from pythumb import Thumbnail
t = Thumbnail('https://youtu.be/aqz-KE-bpKQ')
t.fetch()
t.save('.')
# ./aqz-KE-bpKQ.jpg
Name | Size |
---|---|
maxresdefault | 1280x720 |
sddefault | 640x480 |
hqdefault | 480x360 |
mqdefault | 320x180 |
default | 120x90 |
Name | Size |
---|---|
maxres1 | 1280x720 |
maxres2 | 1280x720 |
maxres3 | 1280x720 |
sd1 | 640x480 |
sd2 | 640x480 |
sd3 | 640x480 |
hq1 | 480x360 |
hq2 | 480x360 |
hq3 | 480x360 |
mq1 | 320x180 |
mq2 | 320x180 |
mq3 | 320x180 |
1 | 120x90 |
2 | 120x90 |
3 | 120x90 |
MIT license. See LICENSE for more information.
FAQs
Command line utility & API for downloading YouTube thumbnails
We found that pythumb 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.