Political ad TV party: Obama loves '2 Broke Girls.' Romney? 'Andy Griffith.'

Mitt Romney may or may not secure the presidency of the United States, but he appears to be in an optimal position to win Mayberry.

"The Andy Griffith Show" is the second-most Republican-leaning program in the country, as measured by the partisanship of the political ads that run during its episodes. Only the Olympics saw a higher percentage of Republican ads, according to a Yahoo News analysis of the filings reported to the Federal Communications Commission by the TV stations in the top 50 media markets.

Since August, the FCC has required stations in the top 50 markets to report all the political ads they air, giving us some sense of when and where campaigns and outside spending groups are spending their cash.

I analyzed the raw text of 14,000 of these filings and extracted about 50,000 individual records of a campaign, super PAC or party committee purchasing advertising time on a specific show. In the following interactive, you can browse through any of the 86 shows that came up at least 25 times in the sample. Click the buttons to go up or down through the shows, or use the bottom button to choose a show at random.

"2 Broke Girls" swung the most heavily to the Democrats—surprising, perhaps, given that the title evokes Mitt Romney’s message that the economy is floundering under President Barack Obama’s stewardship. (It is not surprising if you consider the subject: single women.) "Judge Joe Brown" came in second.

Unfortunately, the light of 10,000 suns could not completely disinfect the reams of raw democracy on where and when these ads are running. The FCC does not require stations to file the information in a way that’s useful to people armed with computers. We’re left with about 30,000 PDF files, totaling nearly 150,000 pages—many of which were scanned sideways or upside down. Nearly half the files could not be read by an optical scanner or could not reliably be connected to the group that ran the ads.

This makes it difficult to know the raw volume of money and airtime. But even a sample of the data gives us a tremendous amount of information about which audiences the campaigns and their surrogates most want to reach.

Thanks to the saintly work of ProPublica, which uploaded all of these files to a site called Document Cloud, we have the raw text of the documents. I used a computer script to extract the names of television shows from that raw text (at least the computer-readable parts). As usual, the numbing methodology is included below.

Because of the intrinsic chaos, we should not think of this data as a scientific sample of all political TV ad purchases. The volume of purchases in the sample does generally match figures from the Federal Election Commission, however: The two camps are advertising roughly in the same amounts, but the Democrats spend more through the campaign while the Republicans rely more on outside groups. Officials at the FCC warn that there is some risk of double counting in these documents, given that stations interpret what they have to disclose differently.

Maybe in 2016 they could use computers.

I used a Predictable Information Elimination algorithm to extract the names of TV shows from the documents, the (messy) source code for which is available on my GitHub page. Thanks again to ProPublica and the Sunlight Foundation, who have done a lot of work to reliably connect each document to the campaign or group paying for the airtime. When the same show turned up multiple times in one document, it was counted multiple times, since this almost always represents two discrete ad runs.

Chris Wilson can be reached at cewilson@yahoo-inc.com

  • 10 Things to Know for Today
    10 Things to Know for Today

    Your daily look at late-breaking news, upcoming events and the stories that will be talked about today:

  • New Wrinkle? Ancient Earth Got a 'Face-Lift,' Study Suggests
    New Wrinkle? Ancient Earth Got a 'Face-Lift,' Study Suggests

    Earth got a "face-lift" early in its history, wiping out most of its original crust, according to a new model of the ancient barrage of asteroids called the Late Heavy Bombardment. "The surface of the Earth was heavily affected by all these collisions," said lead study author Simone Marchi, a planetary scientist with the Southwest Research Institute in Boulder, Colorado. According to the model by Marchi and his co-authors, the meteor storm resurfaced Earth's outer crust and destroyed much of the planet's original rocks, similar to how a dermatologist's microdermabrasion wand buffs away skin, giving patients an instant face-lift.

  • Guy's Wife Didn't Pose for Maternity Photos, So He Posed for 'Manternity' Photos
    Guy's Wife Didn't Pose for Maternity Photos, So He Posed for 'Manternity' Photos

    Maternity photos capture a unique time in the life of any family, or family-to-be. They also, of course, usually feature pregnant women — until now. Reddit user DruishPrincess69 wanted to celebrate the new addition to his family with some portraits, but his wife wouldn't go for it. So, rather than photograph her pregnant belly, he decided to feature his beer belly. He hired a photographer, dubbing the resulting album "manternity photos." Each one parodies photos seen in conventional maternity albums. There's the use of hands to highlight his belly, as he sports classic Superman undies. Another spotlights his killer ice cream craving. In another image, he inserts himself twice to create the classic "dad kisses baby bump," except it's him kissing his own beer bundle of joy.

  • Weight-Loss Supplement Linked to Liver Failure Case

    A healthy 35-year-old woman who took a weight-loss supplement developed liver failure, and needed a liver transplant, according to a new report of her case. The woman took three Saba Appetite Control and Energy (ACE) pills within two days, and two weeks later she developed jaundice, according to the report from researchers at the University of Kentucky in Lexington, who treated the woman. Eight weeks after her jaundice set in, the woman experienced liver failure and needed a transplant. "In summary, this case of drug-induced fulminant liver failure was likely due to Saba ACE supplement," the investigators wrote.

  • Why is Rand Paul reaching out to black voters?
    Why is Rand Paul reaching out to black voters?

    You've got to give this much to Rand Paul: Kentucky's junior senator is willing to do something almost unheard of in modern presidential politics, which is to make arguments that not everyone in his party already cares about. For this reason alone, Paul is probably the most interesting presidential hopeful out there, if not the most likely to succeed.

  • Some Ukrainian rebels vent frustration with Putin
    Some Ukrainian rebels vent frustration with Putin

    By Aleksandar Vasovic DONETSK Ukraine (Reuters) - Western leaders may be Vladimir Putin's biggest critics over the conflict in east Ukraine but the Russian leader is also facing criticism from some of the rebels they accuse him of arming. The European Union and the United States have imposed new sanctions on Russia because they say Putin has not done enough to persuade the pro-Russian separatists to stop fighting and is supplying them with weapons. Squeezed by the Ukrainian army into their last two strongholds, the cities of Donetsk and Luhansk, the rebels complain they are outnumbered and outgunned. "Oh, how we would like to see the Russian army here," said a fighter who gave his name only as Pavel, standing outside the rebel headquarters in Donetsk, an industrial city about 80 kilometers (50 miles) northeast of the nearest border crossing with Russia.

  • Suarez 'too good' for Arsenal, says Gerrard
    Suarez 'too good' for Arsenal, says Gerrard

    Liverpool captain Steven Gerrard has revealed he told former team-mate Luis Suarez he was "too good" to join Arsenal when the north London club came calling for him last year. Arsenal tabled a £40,000,001 ($67.5 million, 50.4 million euros) bid for Suarez a year ago in the mistaken belief it would trigger a release clause in his contract. The Uruguayan went on to score 31 goals as Liverpool narrowly missed out on the Premier League title and although he has since joined Barcelona, Gerrard was relieved not to see him move to Arsenal.

  • Sierra Leone declares state of emergency over Ebola

    By Umaru Fofana and Kwasi Kpodo FREETOWN/ACCRA (Reuters) - Sierra Leone declared a state of emergency and called in troops to quarantine epicentres of Ebola on Thursday, joining Liberia in imposing tough controls to curb the worst ever outbreak of the virus amid fears it could spread beyond West Africa. Ebola has been blamed for 672 deaths in Liberia, Guinea and Sierra Leone, according to the World Health Organization. It has also reached Nigeria's biggest city Lagos, where authorities said on Friday a man had died of the virus. In a measure of rising international concern, Britain on Wednesday held a government meeting on Ebola, which it said was a threat it needed to respond to.

Follow Yahoo! News