TV_GRAB_IT(1p)

๐Ÿ“ฆ
version 1.3.0 ยท 3 versions
, in ubuntu noble

๐Ÿ’– NAME ๐Ÿ’–

okay bestie, listen up: tv_grab_it grabs TV listings for Italy. that's the whole vibe. ๐Ÿ‡ฎ๐Ÿ‡นโœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

tv_grab_it --help

tv_grab_it [--config-file FILE] --configure

tv_grab_it [--config-file FILE] [--output FILE]
           [--days N] [--offset N] [--quiet]
           [--slow] [--verbose] [--errors-in-xml]
           [--backend SITE1[,SITE2[,SITE3]]]         [--cache-slow]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

So basically: this thing outputs TV listings for several channels you can get in Italy. Several. Iconic. But heads up โ€” the grabber works by parsing HTML, which means it might just... stop working at any time. no cap. websites change, grabber cries. ๐Ÿ˜ญ

The data comes from different backends. why? because that way, if one site gets a glow-up (or a glow-down), you don't get a total blackout โ€” plus it lets us cover way more channels. If the grabber can't find data with the first backend, it tries the second one, and so on and so on, like a very determined bestie going down the contact list. You can set your own preference order with the --backend option. ๐Ÿ’…

The backends configured right now are, in default order:

  • mediaset โ€” grabs data from www.mediaset.it
  • skylife โ€” grabs data from www.skylife.it
  • raiit โ€” grabs data from www.rai.it
  • mediaset_guidatv โ€” grabs data from www.mediaset.it/guidatv
  • mediasetpremium โ€” grabs data from www.mediasetpremium.it
  • iris โ€” grabs data from www.iris.it
  • boingtv โ€” grabs data from www.boingtv.it
  • la7 โ€” grabs data from www.la7.it

First run tv_grab_it --configure to choose which channels you want to download. Then running tv_grab_it with no arguments at all will output listings in XML format to standard output. yes, zero args, main character energy. ๐Ÿ‘‘

  • --configure โ€” prompts you for which channels you want, and writes the configuration file. that's it, that's the ritual. ๐ŸŽ€
  • --config-file FILE โ€” sets the name of the configuration file. default is ~/.xmltv/tv_grab_it.conf. this is the file that --configure writes and that gets read when grabbing.
  • --gui OPTION โ€” turns on a graphical interface. OPTION can be 'Tk', or you can leave it blank for the best available choice. other allowed values of OPTION are 'Term' for normal terminal output (that's the default) and 'TermNoProgressBar' if you want to disable the use of XMLTV::ProgressBar.
  • --output FILE โ€” writes to FILE instead of standard output.
  • --days N โ€” grab N days. default is 7.
  • --offset N โ€” start N days in the future. default is to start from today.
  • --quiet โ€” suppresses the progress messages that normally get written to standard error.
  • --slow โ€” downloads more details (descriptions, actors...). meaning it downloads a whole new file for each programme, so it's off by default to save time. it's giving thorough but expensive. ๐Ÿ’€
  • --cache-slow โ€” if you use the --cache option to speed things up when you grab data several times a week, this option makes it cache only the --slow data, so you shouldn't miss changes in schedules.
  • --verbose โ€” prints out verbose info, useful for debugging. ๐Ÿ”
  • --errors-in-xml โ€” outputs warnings as programmes in the xml file, so you can see errors in your favorite frontend in addition to the default STDERR. two places, double the drama.
  • --backend โ€” set the backend (or backends) to use. see the examples below. โœจ
  • --version โ€” show the version of the grabber.
  • --help โ€” print a help message and exit.

๐Ÿ™ˆ CAVEATS ๐Ÿ™ˆ

okay real talk, read this part.

If you use --quiet you should also use --errors-in-xml or you won't be warned about errors. like, at all.

Also note: as opposed to previous versions, this grabber doesn't die if it cannot find any data โ€” instead it returns an empty xml file (or optionally one containing just warnings). so no dramatic exit, just a lil shrug. ๐Ÿซ 

The backends' data quality differs a lot. For example, mytv was very basic, yet complete, and uses the least amount of bandwidth. Skytv has a lot of channels, but unless you use it with the --slow option the data is not very good โ€” and in that case i would be VERY slow. wfactory is a good overall site if you don't need the whole sky package.


๐Ÿ”ฅ EXAMPLES ๐Ÿ”ฅ

  • ```sh tv_grab_it --backend skylife --configure
configures `tv_grab_it` using only the backend `skylife`

- ```sh
tv_grab_it --backend skylife,wfactory --days 1

grabs one day of data, overriding the default order (could also be --backend skylife --backend wfactory)

  • ```sh tv_grab_it --cache --slow --days 3
grabs the full data for the next three days using the default backend order and using a disk cache

---

# ๐Ÿ’… RECOMMENDED USAGE ๐Ÿ’…

tv_grab_it --cache --slow --cache-slow --errors-in-xml


like. that's the one. that's the whole recommendation. ๐Ÿซถ

---

# ๐ŸŒˆ SEE ALSO ๐ŸŒˆ

`xmltv`.

---

# ๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

This grabber is currently unmantained.

---

<purple>and that's the whole page bestie!! this one shipped with **perl v5.38.2**, dated **2024-02-24**, and it lives at **`TV_GRAB_IT(1p)`** in the manual. go grab some Italian TV listings, you absolute icon. ๐Ÿ“๐Ÿงš๐Ÿ’œ</purple>
๐Ÿ“ฆ where this page comes from