<commit_before>kjtcmws
=======

This is a simple experiment to retrieve schedule information from Turner
Classic Movies, using TCM's Web Services APIs as described at
<http://www.tcm.com/tcmws/v1/docs/welcome.html>.

My goal is to have an automated service that notifies me when "something good"
is showing on TCM so that I can set my DVR to record it.  It looks for
particular genres, actors, and directors.

Requires [Node](http://nodejs.org).  Run `npm install` to install the
dependencies, then execute `tcmws.js` to display what's coming up in the next
week on TCM.

For an example of the output, see <https://gist.github.com/kristopherjohnson/2406522eb20a2639b85321a0a335e56e>.

If your tastes vary from mine, just modify the definitions of `favoriteGenres`,
`favoriteActors`, and `favoriteDirectors` in the script.

I don't know why, but once in a while the TCM web service returns invalid
responses with a 200 status code.  If you get an error indicating that
`body.tcm.title` is null, just try running the script again.

<commit_msg>Note the kinds of movies I like<commit_after>kjtcmws
=======

This is a simple experiment to retrieve schedule information from Turner
Classic Movies, using TCM's Web Services APIs as described at
<http://www.tcm.com/tcmws/v1/docs/welcome.html>.

My goal is to have an automated service that notifies me when "something good"
is showing on TCM so that I can set my DVR to record it.  It looks for
particular genres, actors, and directors.

Requires [Node](http://nodejs.org).  Run `npm install` to install the
dependencies, then execute `tcmws.js` to display what's coming up in the next
week on TCM.

For an example of the output, see <https://gist.github.com/kristopherjohnson/2406522eb20a2639b85321a0a335e56e>.

I like film noir and classic horror and sci-fi movies.  If your tastes vary
from mine, just modify the definitions of `favoriteGenres`, `favoriteActors`,
and `favoriteDirectors` in the script.

I don't know why, but once in a while the TCM web service returns invalid
responses with a 200 status code.  If you get an error indicating that
`body.tcm.title` is null, just try running the script again.


{'fraction_non_alphanumeric': 0.0732159406858202, 'fraction_numerical': 0.025949953660797033, 'mean_word_length': 4.50765306122449, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3240610', 'n_tokens_mistral': 696, 'n_tokens_neox': 639, 'n_words': 306}