Skip to main content

An unofficial X scraper and downloader

Project description

TwiX-dl

twix-dl is a Python library (and future CLI tool) for extracting tweet metadata and downloading all media attachments (photos, videos, GIFs) from a Twitter/X post.

📦 Installation

(For now, install from source)

git clone https://github.com/JellyTyan/twix-dl.git
cd twix-dl
pip install -e .

(PyPI package coming soon: pip install twix-dl)


📚 Data Structures

@dataclass
class TweetMedia:
    type: str             # "photo", "video", "gif"
    url: str              # direct media URL
    width: Optional[int]
    height: Optional[int]
    duration: Optional[int]  # for videos
    size: Optional[int]      # optional file size

@dataclass
class TweetInfo:
    tweet_id: str
    url: str
    text: Optional[str]
    author: Optional[str]
    author_url: Optional[str]
    author_avatar: Optional[str]
    media: List[TweetMedia]

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

twix_dl-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twix_dl-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file twix_dl-0.1.0.tar.gz.

File metadata

  • Download URL: twix_dl-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for twix_dl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44bc7661b214b82332dc9d89b79aabfd56b878db17868ebaabfd97384037d24d
MD5 d9d2cc12ee5ace87e552f19d6b7dd964
BLAKE2b-256 8aa168ffb41ce5d881cebe6c1ddffefa1317ffaabe712e381fb134f4d18e54ae

See more details on using hashes here.

File details

Details for the file twix_dl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: twix_dl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for twix_dl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b1762c9d971251d320fe1006c81dfda54a55e4f2b748d7be5b2f966412aa134
MD5 8ccad8718592a1d9980567e017f5eb92
BLAKE2b-256 823ea9f851370ca7e7c975177300eb7593b25dcda577513a101d02591912e34f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page