Problems with reading a tweet with the ethernet shield

Hi,
I have an Arduino UNO and an Ethernet shield and I am desperately looking for a sketch that can read tweets and with these turn on or off an output of the Arduino. I have tried with this sketch: https://www.arduino.cc/en/Tutorial/TwitterClient. But it doesn’t seem to work, it is also written in “TwitterClient Tutorial” that Twitter has changed the authentication mode.
If have also tried with his code:

/*
TweetLED Code
 
This code is based on the code made by Tom Igoe and is used in episode 3 of the Mike's Lab Series on Youtube.
 
 */
#include <SPI.h>
#include <Ethernet.h>
 
 
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x01 };
IPAddress ip(192,168,1,20);
 
// initialize the library instance:
EthernetClient client;
 
const int requestInterval = 30000;  // delay between requests
 
char serverName[] = "api.twitter.com";  // twitter URL
 
boolean requested;                   // whether you've made a request since connecting
long lastAttemptTime = 0;            // last time you connected to the server, in milliseconds
 
String currentLine = "";            // string to hold the text from server
String tweet = "";                  // string to hold the tweet
boolean readingTweet = false;       // if you're currently reading the tweet
 
void setup() {
  // reserve space for the strings:
  pinMode(7,OUTPUT);
  pinMode(8,OUTPUT);
  currentLine.reserve(256);
  tweet.reserve(150);
 
// initialize serial:
  Serial.begin(9600);
  // attempt a DHCP connection:
  if (!Ethernet.begin(mac)) {
    // if DHCP fails, start with a hard-coded address:
    Ethernet.begin(mac, ip);
  }
  // connect to Twitter:
  connectToServer();
}
 
 
 
void loop()
{
  if (client.connected()) {
    if (client.available()) {
      // read incoming bytes:
      char inChar = client.read();
 
      // add incoming byte to end of line:
      currentLine += inChar;
 
      // if you get a newline, clear the line:
      if (inChar == '\n') {
        currentLine = "";
      }
      // if the current line ends with <text>, it will
      // be followed by the tweet:
      if ( currentLine.endsWith("<text>")) {
        // tweet is beginning. Clear the tweet string:
        readingTweet = true;
        tweet = "";
      }
      // if you're currently reading the bytes of a tweet,
      // add them to the tweet String:
      if (readingTweet) {
        if (inChar != '<') {
          tweet += inChar;
        }
        else {
          // if you got a "<" character,
          // you've reached the end of the tweet:
          readingTweet = false;
          Serial.println(tweet);  
          // close the connection to the server:
          client.stop();
        }
      }
    }  
  }
  else if (millis() - lastAttemptTime > requestInterval) {
    // if you're not connected, and two minutes have passed since
    // your last connection, then attempt to connect again:
    connectToServer();
  }
  if(tweet==">ledon")
   {
      digitalWrite(8,HIGH);
   }
   else if(tweet==">ledoff"){
 
    digitalWrite(8,LOW);
   }
}
 
void connectToServer() {
  // attempt to connect, and wait a millisecond:
  Serial.println("Connecting to server");
  if (client.connect(serverName, 80)) {
    Serial.println("Making HTTP Request");
  // make HTTP GET request to twitter:
    client.println("GET /1/statuses/user_timeline.xml?screen_name=mpieters95&count=1 HTTP/1.1");
    client.println("HOST: api.twitter.com");
    client.println();
  }
  // note the time of this connect attempt:
  lastAttemptTime = millis();
}

I can’t find another sketch that works for me.
If you can help me it will be very appreciated. Thanks!

If you point a browser at "http://api.twitter.com" you get a page that says "SSL is required". I don't think that the Arduino Ethernet Shield supports SSL but the Arduino WiFi101 Shield apparently does:
Arduino - WiFi101SSLClient

If you want to use the Arduino Ethernet Shield you could write a bridge server on a PC to bridge the HTTP:: connection to the HTTPS:: server. (The resulting Arduino sketch would not work outside the LAN containing your PC.)