Since you are new, let us show you how Trendy works.

Close-button

Barack Obama Truthiness Score

This trend is broken.

Error using urlfilter (line 26)
Target string byruling/true/">True does not appear
  • Created by: Kevin Holst
  • Last ran: over 1 year ago.
  • Auto-run in: over 1 year.
  • Created on: 22 Feb 2012
  • Liked: 3 times

234

data points

Error

Description:

This is a score of Barack Obama's truthiness (thanks for creating that word Colbert) based on ratings of his comments by Politifact.com

The score is a weighted average based on the following point scheme:

  • True = +2
  • Mostly True = +1
  • Half True = 0
  • Mostly False = -1
  • False = -2
  • Pants on Fire = -3

http://www.politifact.com/personalities/barack-obama/

Recently Collected Data (last 5 of 234) Show All Data

Time Recorded (time1471) Data (data1471)
13 Dec 2012 06:01:04 NaN
12 Dec 2012 06:00:50 [0.223451327433628]
11 Dec 2012 06:00:55 [0.223451327433628]
10 Dec 2012 06:00:55 [0.223451327433628]
09 Dec 2012 06:00:55 [0.223451327433628]
url = 'http://www.politifact.com/personalities/barack-obama/';
vals = urlfilter(url, 'byruling/true/">True',36); % this gets 36 numbers for each ruling
score = (2*vals(1)+vals(7)-vals(19)-2*vals(25)-3*vals(31))/sum(vals([1 7 13 19 25 31]));

updatetrend(score);
Tags:

    Add Tags


    1 comment

    Seth Popinchalk about 2 years ago

    Very cool use of URLFILTER. I had to look at the source for the page you were scraping, but now I see why you had to get 12 numbers. Thanks for putting the comment in the code.