View difference between Paste ID: Lm0SZZ1w and gbrsjWBG
SHOW: | | - or go back to the newest paste.
1-
local mon = peripheral.wrap("right") -- Sélectionez le coté de votre écran :3
1+
local mon = peripheral.wrap("top") -- Sélectionez le coté de votre écran :3
2
term.redirect(mon)
3
os.loadAPI("json")
4
term.clear()
5
term.setTextColor(colors.gray)
6
print("Twitter GET v2.1")
7
term.setCursorPos(3,1)
8
     
9
while true do
10-
  local contenu = http.get("http://goofyplace.org/Black/twitter/request.php?user=Bl4ckWare")
10+
  local contenu = http.get("http://goofyplace.org/Black/twitter/request.php?user=Markus Persson")
11
  --Ici changer Bl4ckWare par le pseudo a surveiller.
12
  local data = contenu.readAll()
13
  decode = json.decode(data)
14
  i = 10
15-
  ii = 0
15+
    while i <= 10 do
16-
    while ii <= 10 do
16+
17
        term.setTextColor(colors.white)
18
  	     local text = decode.statuses[i].text
19
  	     text = text:gsub("u00e9","e") 
20
  	     text = text:gsub("u00e0","a") 
21
  	     text = text:gsub("u00a0"," ")
22
        print("\n "..text)
23
        term.setTextColor(colors.orange)
24
        print(" from : " ..decode.statuses[i].user.name)
25
      end
26
    i = i - 1
27
    sleep(0.1)
28-
    ii = ii + 1
28+
29
    sleep(60)
30
end