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: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

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

_________________
my english is bad
discord : rynx#9828


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 AIM Address Yahoo Messenger MSN Messenger
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

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

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

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 Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

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.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

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

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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: 16
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