Extract Direct Url from Blogger (Token URL)

1

I'm trying to extract the direct URL from Blogger by php or the page source

The URL I want to extract is:

https://www.blogger.com/video-play.mp4?contentId=3506042769269f95

The direct URL (Token URL) I want to get is:

https://www.blogger.com/video.g?token=AD6v5dz0uwopNrKXORmGgs7ejV3_FJScdWnQvWz_DhYSuw8vReBV2Yhy12AAGhNWcshcza0dhVKqaiq2mgdFKG8ZPg9vQKpsU5gQVab4FzYeJTT9gMg81c679_k1TZevU2abOH8ad6Rn

v

$string = "https://www.blogger.com/video-play.mp4?contentId=3506042769269f95";

preg_match_all('https://www.blogger.com/video.g?token=', $string, $match);

echo "<pre>";
print_r($match[0]); 
echo "</pre>";

v

Array
(
    [0] => https://www.blogger.com/video.g?token=AD6v5dz0uwopNrKXORmGgs7ejV3_FJScdWnQvWz_DhYSuw8vReBV2Yhy12AAGhNWcshcza0dhVKqaiq2mgdFKG8ZPg9vQKpsU5gQVab4FzYeJTT9gMg81c679_k1TZevU2abOH8ad6Rn
)

Or extract the URL from the source code of the page:

view-source:https://www.blogger.com/video-play.mp4?contentId=3506042769269f95

and get the URL token:

Array ( 
    [error] => O vídeo esta indisponível 
    [extract] => https://www.blogger.com/video.g?token=AD6v5dz0uwopNrKXORmGgs7ejV3_FJScdWnQvWz_DhYSuw8vReBV2Yhy12AAGhNWcshcza0dhVKqaiq2mgdFKG8ZPg9vQKpsU5gQVab4FzYeJTT9gMg81c679_k1TZevU2abOH8ad6Rn 
)

NOTE: I do not want to extract > > "AD6v5dz0uwopNrKXORmGgs7ejV3_FJScdWnQvWz_DhYSuw8vReBV2Yhy12AAGhNWcshcza0dhVKqaiq2mgdFKG8ZPg9vQKpsU5gQVab4FzYeJTT9gMg81c679_k1TZevU2abOH8ad6Rn"

and yes > >

"https://www.blogger.com/video.g?token=AD6v5dz0uwopNrKXORmGgs7ejV3_FJScdWnQvWz_DhYSuw8vReBV2Yhy12AAGhNWcshcza0dhVKqaiq2mgdFKG8ZPg9vQKpsU5gQVab4FzYeJTT9gMg81c679_k1TZevU2abOH8ad6Rn"

FROM URL:

"https://www.blogger.com/video-play.mp4?contentId=3506042769269f95"
  • Any idea how I can do this?
  • All help is welcome!
  • Thanks!
asked by anonymous 20.11.2018 / 19:35

0 answers