SpK's View Methods - Part 1 - The 'mobile method' (and disguising as Facebook/Twitter)

Status
Not open for further replies.
Java. Bot itself is not a problem, problem is that I can't find one parameter in HTML (plid).
exact. in a yt mobile page the value "PLID" is not assigned, while in a normal yt page value "PLID" is assigned
 
Yes, PLID is not assigned anywhere on the mobile page because, it's generated on fly! Haven't figured out the encoding yet so if anyone knows, PM me :)
 
Yes, PLID is not assigned anywhere on the mobile page because, it's generated on fly! Haven't figured out the encoding yet so if anyone knows, PM me :)
if we try to take it from the normal page and use it in the mobile request?
 
if we try to take it from the normal page and use it in the mobile request?

Won't work, I already tried that :) If you want to use the mobile request, then the PLID must fit the request! If anyone figured out how the PLID is encoded, let me know :P
 
Java. Bot itself is not a problem, problem is that I can't find one parameter in HTML (plid).

exact. in a yt mobile page the value "PLID" is not assigned, while in a normal yt page value "PLID" is assigned

Yes, PLID is not assigned anywhere on the mobile page because, it's generated on fly! Haven't figured out the encoding yet so if anyone knows, PM me :)

Won't work, I already tried that :) If you want to use the mobile request, then the PLID must fit the request! If anyone figured out how the PLID is encoded, let me know :P


Here you go, my buddy 39ster explained it well:
Yeah i was confused about this also. There is no way to scrape it from the mobile watch page. I have figured out how both RDM and PLID are generated though. For plid, it's made up of two parts. The first part is the current date/time in milliseconds and encoded using base36. The second part is a very large randomly generated number. It is also encoded in base36. The two parts are merely appended to together.

RDM is also made up of two parts. The first is the build_id (can be scraped) that has been encoded in base36. The second is a smaller randomly generated number that is also encoded in base36.
 
Here you go, my buddy 39ster explained it well:

Just to make clear something:
plid = h32t5crv2os1emhg2
in base10 it's = 135977714756036522606884828
random number is = 36522606884828
time in milisec is = 1359777147560

And that is confusing. How time can be 1359777147560, while I send request when time was 1338891169207? Maybe they are calculating time from different starting date?



Thank you SpK for everything :)
 
Just to make clear something:
plid = h32t5crv2os1emhg2
in base10 it's = 135977714756036522606884828
random number is = 36522606884828
time in milisec is = 1359777147560

And that is confusing. How time can be 1359777147560, while I send request when time was 1338891169207? Maybe they are calculating time from different starting date?



Thank you SpK for everything :)
You are using a wrong function to calculate timestamp. I've had that issue too, this function fixed it though:
Code:
[COLOR=#006699][FONT=Consolas]Public [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Timestamp[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]([/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Optional [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]ByVal [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Milliseconds [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Boolean[/FONT][/COLOR][COLOR=#888888][FONT=Consolas] = [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]True[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]) [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]String
[/FONT][/COLOR]       [COLOR=#006699]If[/COLOR] [COLOR=#444444]Milliseconds[/COLOR] [COLOR=#006699]Then
[/COLOR]            [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000
[/COLOR]        [COLOR=#006699]Else
[/COLOR]            [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000000
[/COLOR]        [COLOR=#006699]End[/COLOR] [COLOR=#006699]If 
[/COLOR][COLOR=#006699][FONT=Consolas]End [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function[/FONT][/COLOR]
 
You are using a wrong function to calculate timestamp. I've had that issue too, this function fixed it though:
Code:
[COLOR=#006699][FONT=Consolas]Public [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Timestamp[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]([/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Optional [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]ByVal [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Milliseconds [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Boolean[/FONT][/COLOR][COLOR=#888888][FONT=Consolas] = [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]True[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]) [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]String
[/FONT][/COLOR]       [COLOR=#006699]If[/COLOR] [COLOR=#444444]Milliseconds[/COLOR] [COLOR=#006699]Then
[/COLOR]            [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000
[/COLOR]        [COLOR=#006699]Else
[/COLOR]            [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000000
[/COLOR]        [COLOR=#006699]End[/COLOR] [COLOR=#006699]If 
[/COLOR][COLOR=#006699][FONT=Consolas]End [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function[/FONT][/COLOR]

Code:
        public long UnixTimeNow()
        {
            TimeSpan _TimeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0));
            return (long)_TimeSpan.TotalSeconds;
        }
        private void Form1_Load(object sender, EventArgs e)
        {

            long playbackStartTime = UnixTimeNow();
            string rt = ((UnixTimeNow() - playbackStartTime) / 1000).ToString("N3");
            string rdm = "m4vdvn" + result;


            long Timestamp = ((DateTime.Now.Ticks - 621355968000000000L) / 10000);
            string Timestamp36 = Base36Encode(Timestamp);


            Random rnd = new Random();
            byte[] buffer = new byte[8];
            rnd.NextBytes(buffer);
            long longrandom = BitConverter.ToInt64(buffer, 0);
            Base36Encode(longrandom);
            string longrandom36 = Base36Encode(longrandom);


            string plid = Timestamp36 + longrandom36;
            }
this code gives me back >>> h32y5lh4impolfp4av0h
I think its a good PLID code...:eek: i think... thanks spk ones again
 
Works fine without changing anything.
Hell yeah, I want to get in on SPK's working bot...if someone could pm me the link....just tell me what you want
If it's not difficult I would like to get this via PM too. As if this topic about it, it's quite funny to read the opposites telling that asking for this is someway wrong.
Anyway, thank you for a good work, Rep added, as you deserve it.
 
Deleted bot, after it is patched, if i can get download link and parametrs via pm
 
Why the hell would the RTSP way work again? Just started my old bot anyway.
 
Yeah, I figured it out that it was base36.. but thanks for the other info!

If anyone need some code testing, I would definitely like to help and test your bot :D Just PM me!
 
I dont know about the old RTSP bot working again. I tried it yesterday and it doesnt seem to work.
 
Ohh its working, 100%

All though all i have tried is Magic Views

Magic Views never worked for me. The RTSP bot from SPK is the one I tried yesterday. It worked for me back in March though.

I dont know. Sounds like these mobile views are pointless anyway.
 
Isn't this post a rip off from another blog?

The link to that blog was posted in BHW a few days back...
 
Isn't this post a rip off from another blog?

The link to that blog was posted in BHW a few days back...

Yeah i posted it :) but no the other blog that had it seems to take good articles of other blackhatsites and add it to there website.
 
Status
Not open for further replies.
Back
Top