• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Writing Code > 91. Discovering Your Favorite Actors

Discovering Your Favorite Actors

Ever think about who your favorite stars of the small screen are? I don’t mean those you can think of off the top of your head. I mean based on actual television viewing habits.

We already have a framework to key off and siphon data from the television shows in the Now Playing List [Hack #90]. Now, let’s gather some slightly different data. We’ll make an account of all the actors and actresses in the television shows we watch, perhaps spotting trends in those we tend to gravitate toward.

Programmatically, this isn’t any more than grabbing the Actor rather than the Title and EpisodeTitle attributes from the Program object. The Actor object lists all the stars of a particular show, which we’ll parse to draw out the individual names and tally up the number of times they show up in your


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint