Sunday, June 19, 2005

 

TV shows

Following up on the post about the TV show info getting code I was writing ... well its working now, theres 3 parts to it. Part 1 gets all the content from the tv.com All Shows -> Browse shows A-Z pages and saves each letter (the listing is divided up into alphabetical subpages) into big html files. Each letter can have pages to it, in the case of 'S' I think there are 10 pages; My program will make sure to get the content of all the pages for each letter, and join them all into one big html file.

The second part is to go through those big html pages for each letter and find the shows that have no ending date, presupposing that those shows without ending dates are currently airing shows. It saves this list of what it thinks are current shows to a big tabular file.

Then the user edits the tabular file and sets a flag for any shows that are cared about.

The third part of the program will read in the tabular current shows file, and go get current episode information for the shows that have been flagged. Its pretty simple right now, whatever integer was used as the flag for the show being cared about is used as the number of most recent episodes to list. The program will also record any upcoming episodes that havent aired yet and show the soonest one.

Heres some sample output:

Recent:
2005-06-16: The Daily Show: 'Kenneth Timmerman'
2005-06-15: The Daily Show: 'Flynt Leverett'
2005-06-14: The Daily Show: 'Will Ferrell'
2005-06-13: The Daily Show: 'Larry Diamond'
2005-06-13: Hell's Kitchen: 'Episode 3'
2005-06-12: Robot Chicken: 'Kiddie Pool'
2005-06-12: Family Guy: 'The Cleveland-Loretta Quagmire'
2005-06-12: American Dad!: 'Homeland Insecurity'
2005-06-10: Late Night with Conan O'Brien: 'CHRISTINA APPLEGATE, REGINA HALL, BLACK EYED PEAS'
2005-05-25: Lost: 'Exodus (3)'
2005-05-21: Saturday Night Live: 'Lindsay Lohan / Coldplay'
2005-05-21: MADtv: 'Episode #1023'
2005-05-19: The O.C.: 'The Dearly Beloved'
2005-05-19: The Apprentice: 'Into The Stretch (3)'
2005-05-18: That '70s Show: 'Till The Next Goodbye'
2005-05-16: Nanny 911: 'Dickson Family'
2005-05-15: The Simpsons: 'The Father, The Son, & The Holy Guest Star'
2005-05-15: Survivor: 'Reunion'
2005-05-15: Malcolm in the Middle: 'Mrs. Tri-County'
2005-05-12: The Simple Life: 'Dentistry'
2005-05-11: Supernanny: 'Supernanny Family Update Special'
2005-04-26: The Office (US): 'Hot Girl'
2005-04-24: Punk'd: 'Bizarre, Ashlee Simpson, Stone Cold Steve Austin'
2005-04-20: South Park: 'Erection Day'

Upcoming:
2005-06-19: American Dad! Upcoming Episode: 'Deacon Stan, Jesus Man'
2005-06-19: Family Guy Upcoming Episode: 'Petarded'
2005-06-20: Hell's Kitchen Upcoming Episode: 'Episode 4'
2005-06-20: The Daily Show Upcoming Episode: 'Ringo Starr'
2005-09-01: The O.C. Upcoming Episode: 'TBA - Season 3 Premiere'
2005-11-06: Malcolm in the Middle Upcoming Episode: 'Season 7 Premiere'
2005-11-17: Nanny 911 Upcoming Episode: 'Paul Family'
2006-01-01: The Simpsons Upcoming Episode: 'The Italian Bob'


As is, I suppose, typical for the summertime, there isnt much happening on TV right about now. Also, some of the info on TV.com is obviosly out of date. Like Conan O'Brien show listings havent been updated in a week since I know there WERE new episodes this week. Also, in case you wonder why 4 episodes of Daily show are listed, I set it to 4 for that one. Because theres usually 4 new episodes each week and sometimes I dont get to watch it during the week so I download all four.

Enhancements would be to have other sources of episode listings to compare against and have the program use whatever info seems to be more complete. Also, of course and mentioned previously, finding and even possibly starting the download of torrents for the shows. I could take a crack at the finding, but not sure at all on automating downloading.

Comments:

Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?