No project description provided
Project description
LingQ
Command line utilities and scripts for interacting with LingQ's API.
You will need a LingQ API key. You can get it from here.
Installation
pip install lingq
Then, simply run:
lingq setup yourLingqApiKey
Usage
Some examples:
# Upload a playlist to a greek course.
lingq postyt el 129129 "https://www.youtube.com/@awesomeyoutuber"
# Bulk upload a book split by chapters.
lingq post el 129139 "example/texts" -a "example/audios" --pairing-strategy zip
# Timestamp an entire german course.
lingq timestamp de 129129
The full set of commands can be found with lingq --help.
Per command information uses again the help flag: lingq timestamp --help.
A command tree made with this:
cli - Lingq command line scripts.
├── get - Get commands.
│ ├── courses - Get every course from a list of languages.
│ ├── lesson - Get a lesson from its id.
│ ├── lessons - Get every lesson from a course id.
│ ├── images - Get images.
│ └── words - Get words (LingQs).
├── markdown - Generate markdown files for the given language codes.
├── overview - Library overview.
├── patch - Patch commands.
│ ├── audios - Patch a course audio.
│ └── texts - Not implemented.
├── post - Upload a lesson.
├── postyt - Post youtube playlist.
├── resplit - Resplit a course (only for japanese).
├── setup - Creates or updates an .env file with your LingQ API key.
├── show - Show commands.
│ └── my - Show a list with my collections in the given language.
├── sort - Sort all lessons from a course.
├── timestamp - Generate timestamps for a course.
└── yomitan - Make a Yomitan dictionary from a dump generated by 'get_words'.
Etc.
Mainly undocumented scripts to scrape, process text and audio, and to manually use whisper.
If you want to use some of it:
git clone https://github.com/daxida/lingq
cd lingq
pip install .[etc]
# And for example
python3 etc/scrape/japanese/sc_itazura.py
Links
- Forced alignment for LingQ.
- Legacy (v1.0 and v2.0) LingQ's API documentation.
- A miniminalist script to upload content to LingQ. May not be up to date.
- A script to upload youtube playlists to LingQ with Whisper generated subtitles.
- For splitting downloaded audio from youtube.
- Another API wrapper in ruby
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lingq-1.0.4.tar.gz.
File metadata
- Download URL: lingq-1.0.4.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8a71418ecc7094baca6b61a9112e198a9bfe8ae56e4f3ebf7ff661b4302988a
|
|
| MD5 |
3c71059af4fe7a93c39aad9a278c128f
|
|
| BLAKE2b-256 |
8b7257689abab93de6c2ba97fed4e16096a634cc5a4df2dd1c51afb677fffc1a
|
File details
Details for the file lingq-1.0.4-py3-none-any.whl.
File metadata
- Download URL: lingq-1.0.4-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af93ecf5da93f91373146969d78cf8ad4bee5cfd34b1610d61a783544d0fbee4
|
|
| MD5 |
6a00e413c3e6ec9805e4a6dbf51225d5
|
|
| BLAKE2b-256 |
3d9cc65468a26dff746c07c026d6850f13c1e990c42757ca3fde1580e50ed715
|