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.12.1

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.12.1
File Size Uploaded Provenance Actions
pinchana_coub-26.12.1.tar.gz 8.6 kB With provenance Details for pinchana_coub-26.12.1.tar.gz

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / pinchana_coub-26.12.1.tar.gz

Download URL pinchana_coub-26.12.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
30ba719c564f6548a156fd5093d2f234f9e0ee7362b4d48ac46d23c381e3bacf
BLAKE2b-256 checksum
How to use checksums
a6782378d6a779e1f6dff01a850c44221cd5955ec697bee58a7b3f7fb8768473
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 Dec 1, 2026.

Transparency log

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

Download URL pinchana_coub-26.12.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd8383fffb356f1e2888e4cf69a15c0a9a4f4934e70f2859bf9e497e98c8fafb
BLAKE2b-256 checksum
How to use checksums
1f52823d24552f46c0f692c91973884b88daac40dea160faa599dfc72009db01
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 Dec 1, 2026.

Transparency log

Security for pinchana-coub 26.12.1

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.12.1.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 Dec 1, 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.

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