כלים ללכידה ולהמרה של האינטרנט

סרטון YouTube הוסר, יש לו מגבלת גיל או שהוא אינו זמין במדינה ממנה הוא נלקח

This error can occur when converting YouTube videos to animated GIF's and means that the video can not be converted because it has a age restriction or has been removed, or is being viewed from the wrong country. While there is nothing that can be done about videos that have been removed, there are solutions for the other two errors.

Solving the Age Restriction Error

To view a video with a age restriction, you need to use a YouTube account in which you have confirmed your age. To do this you should be logged in to YouTube and open developer tools in your browser, usually by pressing F12, then find the cookies for the webpage. Then identify the YouTube's session cookies, which currently are called SID ו SSID. Then add name, domain and value of these cookies to GrabzIt by using the דף קובצי Cookie מותאמים אישית, מומלץ להשתמש בתאריך תפוגה לאורך זמן רב בעתיד כדי להבטיח שקובץ ה-cookie של ההפעלה לא יימחק. Note this is done at your own risk and we accept no liability as per our תנאים.

Solving the Wrong Country Error

You may be able to bypass this problem by specifying a different country code when making the request to convert a video that is restricted to one country.

נכון לעכשיו א country can be set to either the US, UK or Singapore, below is an example of setting the country for each of our API Libraries.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
AnimationOptions options = new AnimationOptions();
options.Country = Country.US;
grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options);
grabzIt.Save("http://www.mywebsite.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
AnimationOptions options = new AnimationOptions();
options.setCountry(Country.UNITEDSTATES);
grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options);
grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.2/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.youtube.com/watch?v=a1Y73sPHKxw", 
{"format":"gif", "country":"US"}).Create();
</script>
var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_animation("https://www.youtube.com/watch?v=a1Y73sPHKxw", {"country":"US"});
client.save("http://www.example.com/handler", function (error, id){
    if (error != null){
        throw error;
    }
});
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = GrabzItAnimationOptions->new();
$options->country("US");
$grabzIt->URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = new \GrabzIt\GrabzItAnimationOptions();
$options->setCountry("US");
$grabzIt->URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzItAnimationOptions.GrabzItAnimationOptions()
options.country = "US"
grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options)
grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert?key=c3VwcG9ydEBncmFiei5pdA==&format=gif&country=US&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Da1Y73sPHKxw
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzIt::AnimationOptions.new()
options.country = "US"
grabzIt.url_to_animation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options)
grabzIt.save("http://www.mywebsite.com/handler/index")