Skip to main content

Pinchana Coub

Direct Coub scraper service for public single-Coub URLs. It reads metadata from https://coub.com/api/v2/coubs/{permalink}.json; it does not use a browser or yt-dlp.

Media behavior

  • When separate HTML5 video and audio sources are present, the highest known quality (higher, high, med, low) is selected. ffmpeg repeats the video through the full audio track and muxes the result into one MP4. Stream copy is attempted first; only the audio is converted to AAC if direct muxing fails.
  • file_versions.share.default is a ready-to-use MP4 fallback when source download or muxing fails, or when no separate audio track is available.
  • A direct video download is the final fallback when there is no share MP4.
  • Results are stored in the shared MediaStorage cache.

The separate-source path is the default because live inspection on 2026-09-03 found that current share MP4s used the same frame size but a lower video bitrate and contained only about two visual loops, while the high-quality audio source was substantially longer. Run research/inspect_live.py to repeat that check.

API

  • POST /scrape with {"url":"https://coub.com/view/PERMALINK"}
  • POST /inspect for metadata without downloading media
  • GET /media/coub/{permalink}/{filename} inside the trusted gateway network
  • GET /health verifies ffmpeg plus shared VPN and DNS readiness

/embed/{permalink} URLs are also accepted because they identify the same public single-Coub resource.

Development

uv sync --frozen
uv run pytest
uv run uvicorn pinchana_coub.main:app --host 0.0.0.0 --port 8090 --reload

Build the image from the parent pinchana-api checkout so the Docker build can copy pinchana-core:

docker build --file scrapers/pinchana-coub/Dockerfile --tag pinchana-coub:local .

Metadata

Release files for pinchana-coub 26.11.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pinchana-coub 26.11.15
File Size Uploaded Provenance Actions
pinchana_coub-26.11.15.tar.gz 8.6 kB With provenance Details for pinchana_coub-26.11.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pinchana-coub 26.11.15
File Interpreter ABI Platform Actions
pinchana_coub-26.11.15-py3-none-any.whl Python 3 none any Details for pinchana_coub-26.11.15-py3-none-any.whl

Total release size: 18.6 kB

Release files / pinchana_coub-26.11.15.tar.gz

Download URL pinchana_coub-26.11.15.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fbf6177be13ded37e1ba2d6be2aa6297c3a7b1e2069424136055eaec5bb7bc94
BLAKE2b-256 checksum
How to use checksums
95cdf2422cf23dbf4630c3dacedb2d7b559a247b833d107f46d686f43b3b0fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pinchana_coub-26.11.15-py3-none-any.whl

Download URL pinchana_coub-26.11.15-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
638f2b255bb6e18f2526ddc6a1ca1570a33688172fdc10fc9d100482b00d300e
BLAKE2b-256 checksum
How to use checksums
7975172a4e08a2e0931936bef1f51f61c9bb6fbb1b358ff45a6151ec5e9f1e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for pinchana-coub 26.11.15

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pinchana_coub-26.11.15.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

26.11.15 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page