CzechTVSrtScraper
Scraper of hidden subtitles from Czech TV pages into SRT format.
Usage
To create SRT file with subtitles scraped from the webpage type following
# first episode of Most! series
url = 'https://www.ceskatelevize.cz/ivysilani/10995220806-most/216512120010001/titulky'
# scrape and save
import CzechTVSrt as CTsrt
CTsrt.scrape_srt(url, 'output.srt')
By default requests library is used for fetching. In order to use Selenium, it needs to be installed separately (manually) as well as the browser driver. By default, Chrome is used.
To use Selenium, type
import CzechTVSrt as CTsrt
CTsrt.scrape_srt(url, 'output.srt', use_selenium = True)
To use Selenium and Firefox as the browser type
import CzechTVSrt as CTsrt
CTsrt.scrape_srt(url, 'output.srt', use_selenium = True, browser = 'firefox')
The subtitles have specified only the start point, so the threshold for length can be set so it is well timed, by default it is 10 s. Set the threshold in seconds with
import CzechTVSrt as CTsrt
CTsrt.scrape_srt(url, 'output.srt', max_duration = 7)
Contribution
Author: Martin Benes
Metadata
Release files for CzechTVSrt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| CzechTVSrt-0.1.0.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CzechTVSrt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / CzechTVSrt-0.1.0.tar.gz
| Download URL | CzechTVSrt-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50a6eda79be9ce13f5461acdef68dfbe81472adfc1035973c2fbc03fed3983eb
|
|
BLAKE2b-256 checksum How to use checksums |
d0ac0aa748d8855643cbc22a678d7045d527c084fb4744c4647535677e5a2a82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3rc1
|
Release files / CzechTVSrt-0.1.0-py3-none-any.whl
| Download URL | CzechTVSrt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58f7bfa74a3530b77dd7ca75c43c7448bfd6107b7025ddf92a1d6509aaeb1735
|
|
BLAKE2b-256 checksum How to use checksums |
620df3092904fe154f39bae71cf022a2ea39587fc26551dfac8a1d33a6d45cc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3rc1
|
Security for CzechTVSrt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.