Real-Debrid

Login

GET http://www.real-debrid.com/ajax/login.php

Query String:
Field Value
user username
pass 以MD5計算後的密碼
captcha_challenge ''
captcha_answer ''
time int(time.time()*1000)

Return: JSON data (cookie要加到後面request中,忘記加會被ban~)
----------------------------------------------------------------------
{"error":0,"message":"OK","cookie":"auth=......","captcha":0}

用程式登入後,就換成瀏覽器需要重新登入了,所以直接抓瀏覽器的cookie來用比較好。
免得瀏覽器常常需要重新登入Readl-Debrid。

 

unrestrict

GET http://www.real-debrid.com/ajax/unrestrict.php

Query String:
Field Value
link url
password ''
remote 0
time int(time.time()*1000)

Return: JSON data
----------------------------------------------------------------------

{

    "error": 0,    # 不是0就代表有問題了
    "file_name": "filename",
    "file_size": "xx.yy (KB|MB|GB)",
    "file_size_bytes": xxxxxx,
    "generated_links": [
        [
            "filename",
            "",
            "實際可下載網址"
        ]
    ],
    "link": "url",
    "hoster_name": "Filepost",
    "hoster_url": "filepost.com",
    "hoster_image": "filepost.png",
    "media_keys": false

}

沒有留言:

張貼留言