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:
- 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
- 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:
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)
- 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/myfollows
link - 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/sshare
orwelcome/profileshare
connector
step
Project files specially description:
gifshow.sql
Use the database fileCustomRules.js
Fiddler custom rule file I useInto the root directory of the web, the cloning project
# cd D:
# cd phpstudy_pro/WWW
git clone https://github.com/wakasann/gksvideo_in_pc
- Phpmyadmin tool by the project root directory has been cloned
gifshow.sql
into the database and modify the betterapplication/config/database.php
the connection information database - Open Fiddler software,
CustomRules.js
inOnBeforeRequest
andOnBeforeResponse
two 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
- 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 - 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 sig
parameter through jadx
after 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.