Use fiddler and PHP program like the App deft short video stored on your computer

Foreword

Operating platform: windows 10 Home Edition

php code address:

Project started reason: because the trouble deft use App comes with the download button to download video, at the end of the video will be the official deft short video (lines are: deft saw every kind of life)

have to:

  1. Computer: Installed
    • Fiddler software
    • (Installation WIndows Apache, PHP, Mysql software, in order to save me, using the latest version of phpstudy) WAMP
    • git for windows
  2. WLAN proxy Android phone connection has been configured connection information of good Fiddler

If you do not configure the proxy Fiddler and Android phones, can refer to my previous blog post using fiddler software monitor http requests of the phone app , here Skip intro phpstudy installation, configuration Fiddler, Android phones WLAN proxy settings.

Idea:

uploads/200212/think001.png

Fiddler and cooperation between php project

Check out some http request through Fiddler returns results in a few deft App Home label content or profile, will ask some of the api, it returns a short list of videos displays cover art and author video address required (see App is in no watermark video)

  1. Return deft App refresh the list (three deft App Home tab, profile) during the time of refresh, Fiddler script http request to match the corresponding results, visit http php by way of the welcome/myfollowslink
  2. After deft App when sharing a single video or profile parameters requested video url or the user id id, Fiddler script url http matched to the corresponding portion, advance parameters of the request via http access php embodiment welcome/sshareor welcome/profileshareconnector

step

Project files specially description:

  1. gifshow.sql Use the database file
  2. CustomRules.js Fiddler custom rule file I use

  3. Into the root directory of the web, the cloning project

# cd D:
# cd phpstudy_pro/WWW
git clone https://github.com/wakasann/gksvideo_in_pc
  1. Phpmyadmin tool by the project root directory has been cloned gifshow.sqlinto the database and modify the better application/config/database.phpthe connection information database
  2. Open Fiddler software, CustomRules.jsin OnBeforeRequestand OnBeforeResponsetwo methods, from the //关于快手部分的代码部分开始beginning to //关于快手部分的代码部分结束copy the code to the end portion of the corresponding method Fiddler Script

App operation within deft

After the WLAN After setting proxy, advance or refresh the Home profile page

  1. Download a single video / image: enter a single video / picture detail page, and then click 分享-> 复制连接, will be called Fiddler Script php project to match the video id to download files to your computer in the machine
  2. All works download a user: enter is downloaded the user's profile page, manually refresh in the end part, the purpose of information for all the work the user can record the work of information in mysql, after the refresh is complete, click through php program 分享-> 复制链接, Fiddler Script php project will call manually download the user id records all the works in the computer database of the local

Other Nonsense

Because before read some blog post to learn quick worker apk There is a sigparameter through jadxafter a period of research apk view, there has been no result, and to abandon research apk code.

Before listening deft app by requesting a fiddler, and found some of the requested URL is returned without watermark video, and fiddler script writing support for some of the matches uri address some results and get a response request parameters api, it broke a curve no way to get video watermark.

Guess you like

Origin www.cnblogs.com/fsong/p/12305985.html