Skip to content
Android 客户端解析快手分享链接获取到播放视频链接
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
screenshot
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

解析快手短视频分享的链接,获取到播放的MP4链接,最后在浏览器中打开MP4链接进行下载

App页面截图:

Todo List

  • 了解Rxjava2+Retrofit2+MVP的网络请求封装
  • 添加一个配置读取配置的输入框,默认是使用本地的配置JSON文件,也可以使用网络上的配置
  • 网络的配置文件,需要验证格式是正确

20180622

  1. 更新了截取规则,了解到 java解析多级JSON规则,需要一级一级的解析下去,参考json-simple 解析多级json字符串

如:

json 内容

{
  "work":{
     "currentWork":{
        "playUrl":"https://www.example.com"
     }
  }
}

获取上列json字符串中的 playUrl 代码如:

JSONObject jsonObject =  new JSONObject(responseResult); //json 字符串
JSONObject work = (JSONObject) jsonObject.get("work");
JSONObject currentWork = (JSONObject) work.get("currentWork");
String playUrl = currentWork.optString("playUrl");

2019-05-09

尝试使用 jadx 反编译 快手app(6.4.0.9003),发现请求中的签名字段已改为 sig2

2019-05-23

Android Studio ide的版本 更新到 3.1.4

  1. org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compil
  2. org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJava
  3. com.android.builder.dexing.DexArchiveBuilderException: Failed to process
  4. Static interface methods are only supported starting with Android N

程序包com.google.common.collect不存在

在 app的 build.gradle文件中,添加 google/guava

api 'com.google.guava:guava:27.1-android'

  1. http://www.gifshow.com/fw/photo/5229242126404827955?userId=3xwccfweqip6x9i&photoId=3x8n2rkgyp39q7k&cc=share_copylink&timestamp=1559144677719&et=1_i%2F1634881657273335808_h86

这个链接需要登录的web用户才能转发到

Reference

  1. 成功解决org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed;
  2. 快速解决 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileJava'
  3. Android studio升级后原有项目无法正常编译运行问题
  4. 项目运行报错Error: Static interface methods are only supported starting with Android N (--min-api 24)
You can’t perform that action at this time.