Skip to main content

An unofficial CLI tool for x.com

Project description

x-cli-py - A simple CLI tool for x.com

This is a web scraping based tool for x.com. You don't need API key or any other credentials, which is cheap and easy to use. Although, please use it at your own risk as it may violate the terms of x.com.

install

# from source
poetry install

# from pypi
pip install x-cli-py
pipx install x-cli-py

usage

Please refer to the help message for usage details, but here is a simple example.

# setting up
# the chrome window will open, and you need to login to x.com by yourself for the first time.
# if you want to change the account, you have to run setup again.
xcli setup

# get the latest timeline.
# the default setting will get the Following timeline.
xcli tl
xcli tl --tab 1 # get the For You timeline.
xcli tl --user <username> # get the timeline of the user.

# post some text.
# your default text editor (`echo $EDITOR`) will open.
xcli post

# if you forget the account you are using, you can check it.
xcli whoami

# you can refer to the help message
xcli --help

contribution

Please feel free to open an issue or pull request. x-cli-py repository

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

x_cli_py-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

x_cli_py-0.1.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file x_cli_py-0.1.3.tar.gz.

File metadata

  • Download URL: x_cli_py-0.1.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.5 Linux/6.12.17-1-MANJARO

File hashes

Hashes for x_cli_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bd6012c59e82ee10fa1f2b85f9567c6e885dc84ced1d9351b9039deb5e97117e
MD5 2d1f41ae6a7d0b9d30ff7a26d0878ec6
BLAKE2b-256 1eaadc2d41d49b9c19ecb2fb5f81f974cfe6c0dcd71781cbc1d99d9833b5582f

See more details on using hashes here.

File details

Details for the file x_cli_py-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: x_cli_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.5 Linux/6.12.17-1-MANJARO

File hashes

Hashes for x_cli_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 332ace014c7bac28c9c00fd0e13941f05f76c5817b77f04db1516eba246d9766
MD5 1d1ee7d3096d524585945f445a0ba2f4
BLAKE2b-256 f4e723b4ee2d7af5db37aab155d80889ba751b22e4ebf2442fb0c3e097eee7b5

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