Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- youtuber = "AngelMalusPlays"
- http.request("http://gdata.youtube.com/feeds/api/users/"..youtuber)
- local requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == "http_success" then
- local respondedText = sourceText.readAll()
- p = string.find(respondedText,"subscriberCount='")
- e = string.find(respondedText,"' videoW")
- subs = string.sub(respondedText,p+17,e-1)
- requesting = false
- elseif event == "http_failure" then
- print("Server didn't respond")
- requesting = false
- end
- end
- uni={
- 1+2+4+8+16+32, --0
- 3, --1
- 32+1+64+8+4, --2
- 32+1+64+2+4, --3
- 1+64+16+2, --4
- 32+16+64+2+4, --5
- 32+16+8+2+4+64, --6
- 35, --7
- 1+2+4+8+16+32+64, --8
- 32+16+64+1+2, --9
- }
- dec={
- 4096+128+256+512+1024+2048,
- 128+256,
- 4096+128+8192+1024+512,
- 4096+128+8192+256+512,
- 2048+8192+128+256,
- 4096+2048+8192+256+512,
- 4096+2048+1024+512+256+8192,
- 4096+128+256,
- 4096+128+256+512+1024+2048+8192,
- 4096+2048+8192+128+256,
- }
- prs ={
- }
- k=1
- for i=1,10 do
- for j=1,10 do
- prs[k]=uni[j]+dec[i]
- k=k+1
- end
- end
- space = ""
- if subs < 1000 then space = "0" end
- if subs < 100 then space = "00" end
- if subs < 10 then space = "000" end
- subs = space+subs
- print(subs)
- -- rs.setBundledOutput("left",prs[h])
- -- rs.setBundledOutput("right",prs[m])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement