Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gofile again
#1
Hello,

new release API's Gofile

I test this code and it seems to be OK 
Code:
        function gofileBulkCheck()
            {

                var arr = this.links[0].split("\r\n");
                var arrlen = arr.length;
                var token;
                    GM_xmlhttpRequest
                    (
                        {
                    method: 'POST',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                    },
                    onload: function(result)
                            {
                                var resp = JSON.parse(result.responseText);
                                token = resp.data.token;
                                while(arrlen--)
                                {
                                    postRequest(arr[arrlen], token);
                                }
                            }
                        }
                    );
                function postRequest(gofileLink,token)
                {
                    var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                    GM_xmlhttpRequest
                    (
                        {
                            method: "GET",
                            url: 'https://api.gofile.io/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {
                                var res = JSON.parse(result.responseText);
                                if (res.status!=="ok" || res.status=='error-notFound' || res.data.totalSize=="0" || res.data.createTime==null)
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }

                                else
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }
                            }
                        }
                    );
                }

Link Alive:
https://gofile.io/d/ivAERd

Folder empty:
https://gofile.io/d/22n4sO
https://gofile.io/d/OqzfLj

Link Dead:
https://gofile.io/d/useLGB
https://gofile.io/d/udnsAs

Undefined:
https://gofile.io/d/MJjFB

Best regards
Bzh
Reply
#2
i tried it and it's not working for me
Reply
#3
Hello,

Have you copy all the code from the first line to the last ?
There are many changes.
Here the result for me

[Image: image.num1711071380.of.world-lolo.com.jpg]
Reply
#4
yep all the code, tried several times, none of the links check for me.
Reply
#5
Mine is similar to Bzh4ever and is working for me atleast. I copied is postrequest part
Code:
function gofileBulkCheck()
        {
            var arr = this.links[0].split("\r\n");
            var arrlen = arr.length;
            var token;
            GM_xmlhttpRequest
            (
                {
                    method: 'Post',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': rUA(),
                    },
                    onload: function(result)
                    {
                        var resp = JSON.parse(result.responseText);
                        token = resp.data.token;
                        while(arrlen--)
                        {
                            postRequest(arr[arrlen], token);
                        }
                    }
                }
            );
            function postRequest(gofileLink,token)
                {
                    var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                    GM_xmlhttpRequest
                    (
                        {
                            method: "GET",
                            url: 'https://api.gofile.io/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {
                                var res = JSON.parse(result.responseText);
                                if (res.status!=="ok" || res.status=='error-notFound' || res.data.totalSize=="0" || res.data.createTime==null)
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }

                                else
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }
                            }
                        }
                    );
                }
        }
Reply
#6
thanks but it does not work for me either, none of the links in post #1 above are being checked.
Reply
#7
This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
Code:
function gofileBulkCheck()
            {

                var arr = this.links[0].split("\r\n");
                var arrlen = arr.length;
                var token;
                    GM_xmlhttpRequest
                    (
                        {
                    method: 'POST',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        'Content-type': 'application/x-www-form-urlencoded',
                        'Referer': ''
                    },
                    onload: function(result)
                            {
                                var resp = JSON.parse(result.responseText);
                                token = resp.data.token;
                                while(arrlen--)
                                {
                                    postRequest(arr[arrlen], token);
                                }
                            }
                        }
                    );
                function postRequest(gofileLink,token)
                {
                    var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                    GM_xmlhttpRequest
                    (
                        {
                            method: "GET",
                           url: 'https://api.gofile.io/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {

                                var res = JSON.parse(result.responseText);
                                if (res.status=="ok")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

                                if (res.status=='error-notFound')
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }
                            }
                        }
                    );
                }
            }
Reply
#8
(04-18-2024, 07:37 PM)tgs Wrote: This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
Code:
function gofileBulkCheck()
            {

                var arr = this.links[0].split("\r\n");
                var arrlen = arr.length;
                var token;
                    GM_xmlhttpRequest
                    (
                        {
                    method: 'POST',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        'Content-type': 'application/x-www-form-urlencoded',
                        'Referer': ''
                    },
                    onload: function(result)
                            {
                                var resp = JSON.parse(result.responseText);
                                token = resp.data.token;
                                while(arrlen--)
                                {
                                    postRequest(arr[arrlen], token);
                                }
                            }
                        }
                    );
                function postRequest(gofileLink,token)
                {
                    var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                    GM_xmlhttpRequest
                    (
                        {
                            method: "GET",
                           url: 'https://api.gofile.io/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {

                                var res = JSON.parse(result.responseText);
                                if (res.status=="ok")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

                                if (res.status=='error-notFound')
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }
                            }
                        }
                    );
                }
            }

this version of the code works for me i will add it to the script, Thanks for the code.
Reply
#9
(04-18-2024, 08:09 PM)mental Wrote:
(04-18-2024, 07:37 PM)tgs Wrote: This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
Code:
function gofileBulkCheck()
            {

                var arr = this.links[0].split("\r\n");
                var arrlen = arr.length;
                var token;
                    GM_xmlhttpRequest
                    (
                        {
                    method: 'POST',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        'Content-type': 'application/x-www-form-urlencoded',
                        'Referer': ''
                    },
                    onload: function(result)
                            {
                                var resp = JSON.parse(result.responseText);
                                token = resp.data.token;
                                while(arrlen--)
                                {
                                    postRequest(arr[arrlen], token);
                                }
                            }
                        }
                    );
                function postRequest(gofileLink,token)
                {
                    var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                    GM_xmlhttpRequest
                    (
                        {
                            method: "GET",
                           url: 'https://api.gofile.io/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {

                                var res = JSON.parse(result.responseText);
                                if (res.status=="ok")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

                                if (res.status=='error-notFound')
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }
                            }
                        }
                    );
                }
            }

this version of the code works for me i will add it to the script, Thanks for the code.

Thanks for updating the script  Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)