Skip to main content

CLI for reading swedish text-tv

Project description

txtv - A client for reading swedish text tv in the terminal

Text-tv is great! plaintext and to-the-point news with no filler. Now you can read it without touching your mouse or your tv-remote :)

Installation

If you have Python 3.6 or later with pip installed, just run

pip3 install --user txtv

Currently wont work natively on the Windows command line because of readline; but you can use it with Ubuntu for Windows.

Usage

Running with no arguments will enter interactive mode.

txtv

From there you can run any of these commands:

help | h | ? -- show this help text.
quit | q | exit -- quit the program (duh)
list | ls | l -- list all articles
next | n | > -- show next available page.
previous | prev | p | < -- show previous available page.
<PAGE NUMBER> -- show the page at the specified number

You can also give any of these commands as an argument on the normal command line to run un-interactively. Except for quit, next, and previous, because that would make no sense.

txtv 100  # show page 100

txtv ls   # list all news articles

Configuration

txtv.py will automatically generate a config file at ~/.config/txtv/txtv.cfg with default values. It uses format of configparser.

alias

under the alias category you can specify any number of aliases for txtv commands. These will work both in interactive mode and as subcommands when calling txtv from your shell.

example:

[alias]
	all=list

will let you list all articles from shell with

txtv all

or by typing all in interactive mode.

general

So far there is only one option here, named prompt. It is just the prompt string used in interactive mode.

example:

[general]
	prompt = kommandorörelse>

Links

Here is the trello for the development of txtv: https://trello.com/b/aBI0DpN3/txtv

Here is where it's scraping data from: https://www.svt.se/svttext/web/pages/100.html

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

txtv-2.0.1.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file txtv-2.0.1.tar.gz.

File metadata

  • Download URL: txtv-2.0.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for txtv-2.0.1.tar.gz
Algorithm Hash digest
SHA256 6eb7f4658a53c945f79a897efcb43023773c3d48de251e6c4b648e204fb420da
MD5 8712e1935fd381a4751f94fd071e8713
BLAKE2b-256 1a640e5612c3f202d3c2814fce0a8c1ccdfd06c83687a3823cbeefeabe9cf303

See more details on using hashes here.

Supported by

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