Skip to main content

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>

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

Metadata

Release files for txtv 2.0.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 txtv 2.0.1
File Size Uploaded
txtv-2.0.1.tar.gz 20.0 kB Details

Release files / txtv-2.0.1.tar.gz

Download URL txtv-2.0.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6eb7f4658a53c945f79a897efcb43023773c3d48de251e6c4b648e204fb420da
BLAKE2b-256 checksum
How to use checksums
1a640e5612c3f202d3c2814fce0a8c1ccdfd06c83687a3823cbeefeabe9cf303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

2.0.1 This release

1 release file

2.0.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

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