Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


getYoutubeChannelSubsFromLink(link)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Lynxz Gaming
Expert Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 147

PostPosted: Sat Dec 29, 2018 11:08 pm    Post subject: getYoutubeChannelSubsFromLink(link) Reply with quote

(bad english)
So i create this because im so bored
this can get subscriber count from the channel you wanted

maybe you can use this as a design xD
or you can make a cheat that unlocked if you get subs more than u want

please give credits to me xD

Code:
--////////////////////////////////////////////////
--// Created by Lynxz Gaming                    //
--// uses : getYoutubeChannelSubsFromLink(link) //
--// Please give credits :D                     //
--////////////////////////////////////////////////
function getYoutubeChannelSubsFromLink(CLink)
loadUrl = getInternet().getURL
channelLink = CLink
websource = loadUrl(channelLink)
stringlength = 0
stringlength2 = 0
if string.find(websource,'tabindex="0" aria') then
 stringlength = string.find(websource,'tabindex="0" aria')
 stringlength = stringlength + 25
 websource = string.sub(websource,stringlength)
end
if string.find(websource,'">') then
 stringlength2 = string.find(websource,'">')
 stringlength2 = stringlength2 - 12
 websource = string.sub(websource,0,stringlength2)
end
return websource
end


put the script very top

uses : getYoutubeChannelSubsFromLink(link)

example :
Code:
local pewdsub = getYoutubeChannelSubsFromLink("https://www.youtube.com/user/PewDiePie")
local tseriessub = getYoutubeChannelSubsFromLink("https://www.youtube.com/user/tseries")

if pewdsub > tseriessub then
showMessage("Pewdiepie got more subs than tseries")
elseif pewdsub < tseriessub then
showMessage("Oh no!, tseries got more subs than pewdipie")
elseif pewdsub == tseriessub then
showMessage("Pewdiepie subs is EQUAL with tseries subs!")
end

_________________
<3 Yuki Tanaka


Last edited by Lynxz Gaming on Sun Dec 30, 2018 12:22 am; edited 1 time in total
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 147

PostPosted: Sun Dec 30, 2018 12:25 am    Post subject: Re: getYoutubeChannelSubsFromLink(link) Reply with quote

(bad english)
u can use it depend on ur creativity, what will u do if u got the subscriber count

it do just get a subscriber count from a channel

and you can see script now

_________________
<3 Yuki Tanaka
Back to top
View user's profile Send private message
Aylin
Master Cheater
Reputation: 4

Joined: 16 Feb 2017
Posts: 266

PostPosted: Sun Dec 30, 2018 12:45 am    Post subject: Reply with quote

People: I don't know if the number of subscribers wonders the difference.
Nevertheless: enthusiastic people: Always one step ahead.
Feel free to share code.
For a stronger and more useful result, the first step is important. Wink

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater
Reputation: 22

Joined: 10 Apr 2015
Posts: 721

PostPosted: Sun Dec 30, 2018 7:26 pm    Post subject: Reply with quote

What is these ?
Where is the lua extension ?

try with this link : getYoutubeChannelSubsFromLink("https://www.youtube.com/watch?v=qeh2zscThVw")

No video playing, because no web player prepared.

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 147

PostPosted: Sun Dec 30, 2018 11:16 pm    Post subject: Reply with quote

Corroder wrote:
What is these ?
Where is the lua extension ?

try with this link : getYoutubeChannelSubsFromLink("https://www.youtube.com/watch?v=qeh2zscThVw")

No video playing, because no web player prepared.


the link must be a channel, this do only get a channel subscriber
i already write the example up

_________________
<3 Yuki Tanaka
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Mon Feb 18, 2019 7:44 am    Post subject: Re: getYoutubeChannelSubsFromLink(link) Reply with quote

int = getInternet()
pageSource = int.getURL("https://www.youtube.com/user/PewDiePie")

print(string.match(pageSource, '<meta name="title" content="([^"]+)"'))
print(string.match(pageSource, 'title="([^"]+)" tabindex="0"'))

_________________
...
Back to top
View user's profile Send private message
Gereksizz
Newbie cheater
Reputation: 0

Joined: 04 Jan 2018
Posts: 13
Location: Anime Heaven

PostPosted: Sat Mar 09, 2019 10:08 am    Post subject: Re: getYoutubeChannelSubsFromLink(link) Reply with quote

You Are Alive? Eyy
_________________
Im A No Life
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites