The Trendy application is being retired in the new year. The new web application, ThingSpeak, offers similar functionality. We recommend that active Trendy users who are looking to create new trends use ThingSpeak. To begin collecting your data in ThingSpeak, please read the tutorial : ThingSpeak for Trendy users. Although Trendy no longer allows the creation of new trends, the application will still remain accessible until January 13, 2016. Until that date, you can view your current trends and download your data. After that date, your data will no longer be accessible. Thanks for using Trendy and we encourage you to check out ThingSpeak.

Close-button

Barack Obama Truthiness Score

This trend is broken.

Error using urlfilter (line 26)
Target string byruling/true/">True does not appear

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

    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.