SpyLoaded Forum

Science/Technology/Business/Editoria => Art, Graphics Designs => Webmasters Board => Topic started by: Yakub Oloyede on November 25, 2017, 10:48:37 AM

Title: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Yakub Oloyede on November 25, 2017, 10:48:37 AM
(https://images.sftcdn.net/images/t_optimized,f_auto/p/ae801e0c-a4d3-11e6-b69f-00163ec9f5fa/217711375/video-downloader-tubegrabber-screenshot.png)

If you want to save a video in case it's taken offline or make a backup of your own videos for safekeeping, you need a free YouTube downloader.

These free tools will enable you to download and save videos from YouTube – and often other video sharing sites too – in a format of your choice. You can usually choose to save the whole clip or just the audio, which is a great choice for music videos and video podcasts.

YouTube downloaders can also come in handy in other circumstances. If you have a slow internet connection, you'll find that streaming videos can be a pain. With the right downloader, however, you can set the videos you are interested in to download overnight so they are ready and waiting for you to enjoy in the morning, stutter-free and buffer-free.

Free YouTube downloaders are always changing, but we upgrade this guide frequently so you can be sure that you're always getting up to date advice

Download V1.0 Youtube Grabber (http://spyloaded.com/SLB-VIDEO.zip)

DOWNLOAD V2.0 GRABBER (http://www.mediafire.com/file/uwhozhoo15re0cv/SpyLoadedNG-Grabber.zip/file)

HOW TO INSTALL

Go to C/panel &
Create a sub domain named it 'movies.url.com'
Now go to File manager > Public html
Locate the subdomain name
Upload & Unzip the script in the sub domain folder
And visit www.sub domain.url.com

Now How To Make It Work

Get API Key for YouTube

With the new rules and API version 3 changes YouTube is requiring all users that want to view videos outside of YouTubes website to register and create a Project to access the API. The good news is this process is fairly simple.

In order for you to get the YouTube feed working you need an API Key. Here is the process to obtain that.

Go to https://developers.google.com/ and log in or create an account, if necessary.
After logging in go to this link https://console.developers.google.com/project and click on the blue CREATE PROJECT button as depicted in the photo below. Wait a moment as google prepares your project.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.12.36-PM.png)

Fill in whatever Project Name you want.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.14.40-PM.png)

Then click on the link option called “YouTube Data API.” It’s under YouTube API’s. You can see it highlighted in the photo below, bottom right.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.16.25-PM.png)

Now click on the “ENABLE” button.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.17.11-PM.png)

Next click on the blue ‘Go to Credentials’ button to the right.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.17.34-PM.png)

Choose the select option YouTube Data API v3 for the first select option and Web server(e.g. node js. Tomcat) for the second selection. Then choose Public data. Now click the blue button, “What credentials do I need?.”

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.21.07-PM.png)

Almost done, wait for google to create your new project and you should see the screen below where you can copy your API Key.

(https://www.slickremix.com/wp-content/uploads/2015/04/Screen-Shot-2016-08-06-at-4.21.38-PM.png)

Paste the API Key You create in your YouTube grabber script.

If you cant get the method of creating the Api Key. Try and use this my Default key of mine

AIzaSyAKtGXxSm0F65EhRx1_pkQNZvBzXvpqoy4

HOW TO PLACE THE API KEY

Edit Index.php | Download.php > Look for
Code: [Select]
$scrap = grab('https://www.googleapis.com/youtube/v3/videos?id='.$link.'&key=----------------------------------&part=contentDetails');
Replace ------ with the api key you create

HOW TO CREATE SITEMAP

create a new file and name it xml-sitemap.xsl and add the code below

Code: [Select]

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
                xmlns:html="http://www.w3.org/TR/REC-html40"
            xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
                xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
   <xsl:template match="/">
      <html xmlns="http://www.w3.org/1999/xhtml">
         <head>
            <title>XML Sitemap - URL</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
            <script type="text/javascript" src="http://tablesorter.com/jquery.tablesorter.min.js"></script>
            <script   type="text/javascript"><![CDATA[
               $(document).ready(function() {
                    $("#sitemap").tablesorter( { widgets: ['zebra'] } );
               });
            ]]></script>
            <style type="text/css">
               body {
                  font-family: Helvetica, Arial, sans-serif;
                  font-size: 13px;
                  color: #545353;
               }
               table {
                  border: none;
                  border-collapse: collapse;
               }
               #sitemap tr.odd {
                  background-color: #eee;
               }
               #sitemap tbody tr:hover {
                  background-color: #ccc;
               }
               #sitemap tbody tr:hover td, #sitemap tbody tr:hover td a {
                  color: #000;
               }
               #content {
                  margin: 0 auto;
                  width: 1000px;
               }
               .expl {
                  margin: 10px 3px;
                  line-height: 1.3em;
               }
               .expl a {
                  color: #da3114;
                  font-weight: bold;
               }
               a {
                  color: #000;
                  text-decoration: none;
               }
               a:visited {
                  color: #777;
               }
               a:hover {
                  text-decoration: underline;
               }
               td {
                  font-size:11px;
               }
               th {
                  text-align:left;
                  padding-right:30px;
                  font-size:11px;
               }
               thead th {
                  border-bottom: 1px solid #000;
                  cursor: pointer;
               }
            </style>
         </head>
         <body>
            <div id="content">
               <h1>XML Sitemap</h1>
               <p class="expl">
                  Generated by Doncarthex
               </p>
               <p class="expl">
                 
               </p>
               <p class="expl">
                  This sitemap contains <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> URLs.
               </p>         
               <table id="sitemap" cellpadding="3">
                  <thead>
                     <tr>
                        <th width="75%">URL</th>
                        <th width="5%">Priority</th>
                        <th width="5%">Images</th>
                        <th width="5%">Change Freq.</th>
                        <th width="10%">Last Change</th>
                     </tr>
                  </thead>
                  <tbody>
                     <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
                     <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
                     <xsl:for-each select="sitemap:urlset/sitemap:url">
                        <tr>
                           <td>
                              <xsl:variable name="itemURL">
                                 <xsl:value-of select="sitemap:loc"/>
                              </xsl:variable>
                              <a href="{$itemURL}">
                                 <xsl:value-of select="sitemap:loc"/>
                              </a>
                           </td>
                           <td>
                              <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
                           </td>
                           <td>
                              <xsl:value-of select="count(image:image)"/>
                           </td>
                           <td>
                              <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
                           </td>
                           <td>
                              <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
                           </td>
                        </tr>
                     </xsl:for-each>
                  </tbody>
               </table>
            </div>
         </body>
      </html>
   </xsl:template>
</xsl:stylesheet>

Create a new file named it "Sitemap.php" & Copy this into it
Code: [Select]
<?php
include 'config.php';
header("Content-Type: application/xml; charset=ISO-8859-1");
$file array_reverse(array_unique(file("sc.dat"),SORT_REGULAR));

$count count($file);
$limit $count;
echo
'<?xml version="1.0" encoding="ISO-8859-1"?>

<?xml-stylesheet type="text/xsl" href="xml-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
';
for ($i=0; $i < $limit; $i++)
{
$chunk=$file[$i];
$chunk=str_replace('
','',$chunk);
$ln=preg_replace("/[^A-Za-z0-9[:space:]]/","$1",$chunk);
$ln=str_replace(' ','-',$ln);
if(!empty($ln)){
if($i > 49999){ }else{
echo "<url>
<loc>".$homepage."search/$ln.html</loc>
<priority>0.1</priority>
<changefreq>always</changefreq>
</url>";
}
}
}
echo "
</urlset>";
?>

Now add this at the last line in your htaccess

Code: [Select]
RewriteRule ^sitemap.xml sitemap.php [L]

How To Create a Category
- in your public_html
- create a file
- name it Categories.php
- Copy / Paste this sample code

<?php
Include (head.php); ?>

<div class="title">CATEGORIES</div>

<div class="group">

<a href="URL.COM/search/how.html"> *How To* </a><br>
<a href="URL.COM/search/nollywood.html"> *Nollywood* </a><br>

<a href="URL.COM/search/xxx.html"> *XXX Movie* </a>

</div>

<?php
Include (footer.php); ?>

- And Save
Note: Don't forget to change URL.com to you YouTube grabber page

DEMO - http://movies.spyloadedng.com

Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Olaitan on February 12, 2018, 03:44:12 AM
Please bro, the script didn't display any video in homepage and category page. What's the problem
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on February 12, 2018, 05:54:16 AM
Please bro, the script didn't display any video in homepage and category page. What's the problem

You have to set up the API key.. Scroll up to read from that line..


Now How To Make It Work

Get API Key for YouTube
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Olaitan on February 12, 2018, 11:11:08 PM
I followed above procedure and successfully created the API key and insert it to download.php and index.php but still not showing. please what's the problem
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Mr. Babatunde on February 12, 2018, 11:23:23 PM
I followed above procedure and successfully created the API key and insert it to download.php and index.php but still not showing. please what's the problem

The problem is from the API KEY you created. you may have select user data instead of Public data And again you may have mistakenly input your web url during creating the API KEY. Try to fix it from the developer page. the script is ok once it didnt gives any ERROR LINES

i Advice you google search how to create and generate Youtube Api key...
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Dan on February 24, 2018, 04:27:41 AM
Pls how can i setup the seo?
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on February 24, 2018, 07:35:40 AM
Pls how can i setup the seo?

You didn't need much to set up the SEO. All you need is just Create A Sitemap and submit it to Search Engine (Google webmaster tools, Bings) and watch the traffics generating.

To see the sample of our forum seach google > site:movies.spyloadedng.com
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Fan on February 24, 2018, 09:26:09 AM
Thank you for replying.
I found out that the sitemap auto generate links itself and only search queries are stored. Is it ok like that?
Pls review mine if there should be any change/improvement to be made
movies.naijaflavour.com
And here is my sitemap
movies.naijaflavour.com/sitemap.xml
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Cyborg on June 19, 2018, 06:23:16 PM
My site is working fine but shows this error at times for some minutes/hrs pls how do i stop it?
"sorry, keyword you entered do not match any video, please split or enter new keyword".
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on June 19, 2018, 06:28:59 PM
My site is working fine but shows this error at times for some minutes/hrs pls how do i stop it?
"sorry, keyword you entered do not match any video, please split or enter new keyword".

Yes the YouTube Api key Refresh for new updates. It takes minutes or hours for the API key to Updates new files.

NOthing has happened to your website.
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Cyborg on June 19, 2018, 06:40:15 PM
Thank you for your response.
This time around it seems unusual because it has been like that for upto a day now.
I do check movies.spyloadedng.com and i have never seen such error.
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on June 19, 2018, 06:44:06 PM
Thank you for your response.
This time around it seems unusual because it has been like that for upto a day now.
I do check movies.spyloadedng.com and i have never seen such error.

Oh ok. Movie.spyloadedng.com always refresh in the middle of the night. That's y!! But just give some time. If the API ain't showing. That means the key is getting weak. You can create a new one. But since we set up our grabber. We've never create new Api key.
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Cyborg on June 19, 2018, 06:49:51 PM
Okk thank you.
But how can i make it refresh in the middle of the night?
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on June 19, 2018, 06:53:21 PM
Okk thank you.
But how can i make it refresh in the middle of the night?

No answer to that. That's the work of the YoutubeApi3 developer tools
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Cyborg on June 19, 2018, 06:58:07 PM
Ok thanks for you quick response.
I will create new account and get new api key  to try it and see if it will work.
Thanks once again.
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on June 19, 2018, 06:59:32 PM
Ok thanks for you quick response.
I will create new account and get new api key  to try it and see if it will work.
Thanks once again.

You are welcome!! Thanks for visiting
SpyLoaded!!!
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Cyborg on June 19, 2018, 07:49:52 PM
It finally worked after i created a new key for it.
Thank you so much for your  help
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Miss Ifeoluwa on June 19, 2018, 08:54:57 PM
It finally worked after i created a new key for it.
Thank you so much for your  help

You are welcome...
Title: Re: Download Youtube Grabber Script With Sitemap & Api Key Set up
Post by: Vikkii on June 19, 2018, 08:59:57 PM
A great forum. I love this blog and how their Admin's work. I face similar things to. but it fix it Self after some minutes. I so proud of this website. great Job SpyLoaded Admin's
Title: Youtube downloader script for website
Post by: EMeka on July 24, 2018, 07:55:22 PM
Thanks for sharing this. really works
SimplePortal 2.3.6 © 2008-2014, SimplePortal