抖音越獄版本App下載


一、准備下載越獄版本抖音App

  一般下載越獄版本App要不從越獄手機上Crack 正版App,另外一種從PP助手或者越獄市場進行下載,這里選擇第二種方式

  感謝 http://iosre.com/t/pp-ipa/11589 提供的代碼,這里使用一段python3腳本進行搜索下載

  腳本如下:

  

import urllib.request
import urllib.parse
import re
import ssl
import base64

#關閉SSL驗證
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent }
ssl._create_default_https_context = ssl._create_unverified_context
print("Close certificate verify...")

def getSearchResult():
    keyword = input("Input the search key word: ")

    #將中文轉換成url編碼
    keyword = urllib.parse.quote(keyword)

    searchUrl = "https://www.25pp.com/ios/search_app_0/" + keyword + "/"
    content = getHtmlStringByUrl(searchUrl)
    detailUrl = getSearchDetailUrl(content)
    content = getHtmlStringByUrl(detailUrl)
    downUrl = getAppdownUrlByHtmlContent(content)
    return downUrl


# 根據url 獲取網頁內容
def getHtmlStringByUrl(url):
    try:
        request = urllib.request.Request(url, headers=headers)
        response = urllib.request.urlopen(request)
        content = response.read().decode('utf-8')  # gbk
        return content

    except urllib.request.URLError as e:
        if hasattr(e, "code"):
            print(e.code)
        if hasattr(e, "reason"):
            print(e.reason)

    return ""

# 根據網頁內容獲取詳情鏈接
def getSearchDetailUrl(content):
    pattern = re.compile('href="https://www.25pp.com/ios/detail_.*?"', re.S) #href = "https://www.25pp.com/ios/detail_3491226/"
    items = re.findall(pattern, content)
    for item in items:
        #print(item)
        values = item.split('"')
        result = values[1]
        print("Detail url: " + result)
        return result

    return ""

# 根據網頁內容獲取ipa的下載鏈接
def getAppdownUrlByHtmlContent(content):
    pattern = re.compile('appdownurl=".*?"', re.S)  # appdownurl="aHR0cDovL3IxMS4yNXBwLmNvbS9zb2Z0LzIwMTgvMDEvMDkvMjAxODAxMDlfNjI0NThfMjE1MDYwOTY4Nzc4LmlwYQ=="
    items = re.findall(pattern, content)
    for item in items:
        values = item.split('"')
        result = values[1]
        print("Orgin download url: " + result)

        # Base64Decode
        output = base64.standard_b64decode(result)
        output = output.__str__()
        return output

    return ""


downUrl = getSearchResult()
print("Down url: " + downUrl)

  下載結果:

Close certificate verify...
Input the search key word: 抖音
Detail url: https://www.25pp.com/ios/detail_3306009/
Orgin download url: aHR0cDovL3IxMS4yNXBwLmNvbS9zb2Z0LzIwMTgvMDYvMjAvMjAxODA2MjBfNTU4MDJfMjMwNzAxNzk3OTIzLmlwYQ==
Down url: b'http://r11.25pp.com/soft/2018/06/20/20180620_55802_230701797923.ipa'

  使用瀏覽器下載抖音App

 

 總結:

  抖音App作為短視頻的標桿產品,具有觀看短視頻、錄制短視頻的能力,對於學習其代碼架構有參考價值。

 

 

    


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM