direct-tv: What's on TV?
Description
Launching
Usage
Download
Description
Direct-tv.py, is as you might guess, a script to check what is currently airing on
directv a specific television provider whom I wont mention. All you need to do is tell it which channel
you're interested in, and it will show you the shows running in the next two hours.
Launching and Examples
The following code will fetch the current programs for channel 310 in the central timezone, using the internet.
./direct-tv.py -w -c 310 -t c
The above code is not a good way to find information, it is slow, taking up to four seconds to execute, because it needs to contact the web server for updated information.
This next code will generate a cache (good for one hour) of the shows for the central timezone.
./direct-tv.py -r -t c
That code will output nothing, but if the following code is ran, it will fetch channel information from the cache and display it. Note how the timezone no
longer needs to be defined as it is saved in the cache.
./direct-tv.py -l -c 310
The above code is much faster than the first command, executing roughly 33x faster than the first.
Usage
Usage: direct-tv.py [options]
Options:
-h, --help show this help message and exit
-w Fetch data from web, do not cache
-l Fetch data from cache, do not contact web
-r Cache data from webserver
-c C Channel # or Name to fetch schedule for.
-a Automatically update cache if out of date
-z Z Zip code for local channels
-t TZ Time zone for user (E, C, M, etc)
Download
Download Lastest Version
Abeisgreat.com (C) Abe Haskins 2008-5008