Open Source License: Learn More
Kuaishou short video batch download script
This project uses OwOFrame
for backend construction, which needs to be used together. Website: Click me
This project is only used for learning and communication, and it is strictly prohibited to sell this source code!
Be sure to submit bugs or suggestions using the default Issue template provided!
Donation: https://owoblog.com/donation/
- Support for simulating QR code login to actively obtain
Cookies
(see the usage below for details) - support parsing all works of a single author
- Support parsing video links shared by
mobile client
- Support parsing video links shared by
PC web page
- Downloads are supported even though the work is set by the author to not allow downloads
- Support for parsing information of a single work
- Background logging to record recent parsing records
- Background log records and analyzes the details of the work (title, release time, likes, etc.)
- Error list (i.e. request timeout and other works enter the error list, waiting for the next retry)
- Stay tuned... Give more Stars to encourage me to develop!!! Please!!! This project really took me a lot of time to grasp the interface and optimize!!!
Please follow the steps below slowly.
- First clone the project OwOFrame to a file directory.
- After installing the framework
OwOFrame
, clone this project into thestorage/module
directory.
Attention: You can also use the command
git clone https://github.com/Tommy131/KuaishouParser.git
directly to thestorage/module
directory.
- Open website of Kuaishou
www.kuaishou.com
andlive.kuaishou.com
and log in your account. - Search for the name of the author you want to save, click to load the page and open the browser console (F12).
- After opening the console and entering
document.cookie
in each of the two sites mentioned in the first point, copy the long string of Cookies and paste it intoconfig.json
.
Notice: Of course, you can also use the simulated login command below to obtain Cookies.
www
in config.json corresponds towww.kuaishou.com
,live
corresponds tolive.kuaishou.com
.- The default configuration file is like as follows:
{
"cookies": {
"live": "(cookie: string)", // Fill in the cookies of live.kuaishou.com here
"www": "(cookie: string)" // Fill in the cookies of www.kuaishou.com here
},
"proxy": {
"status": false, // whether to use proxy server option
"address": "127.0.0.1", // the address of the proxy server
"port": 10809 // port of the proxy server
}
}
The main command of this project is owo kuai [arguments: string]
, the premise of default php
is to run the command terminal in the root directory of the current project.
Global Parameters (any position for this parameter):
- Auto download:
--autoDownload
or--ad
- No cache request:
--no-cache
- Platform:
--live
(<-default) or--www
The command is: owo kuai [authorId: string]
authorId
: Author ID (the ID here can be the Kuaishou account displayed in the Kuaishou App, or the authorId in https://(Kuishou's domain name)/profile/authorId)
The command is: owo kuai -search [userName: string]
userName
: The name you want to search
The command is: owo kuai -s [id: string] (--mode-mobile)
- here's
id
is xxxxxx in https://v.kuaishou.com/xxxxxx - on PC's
id
is xxxxxx in https://www.kuaishou.com/f/xxxxxx -sid
: share Id, another way is "-shareId"--mode-pc
: Parse from web page--mode-mobile
: Parse from KuaiShou Mobile Client (default parsing platform is mobile client)
Th command is: owo kuai -d [fileName: string] [...string]
fileName
: the name in pathdownloaded
(could be a dir or a file)
The command is: owo kuai -login (platform: string)
- here's
platform
is the logged in site/platform (defaultwww
, other options arelive
) - Follow the prompts! As shown below:
The command is: owo kuai -o (name: string)
- By default, when the command is entered without parameters, it will open the resource download storage path, otherwise it will look for the file/folder name related to the parameter
name
- Support simulating QR-Code scanning login to actively obtain cookies
- Support sharing analysis video download
- Support saving videos/photos that cannot be downloaded in the client
- The downloaded photos currently have no watermark
- The downloaded video is currently the original uploaded video (that is to say, there is no "快手, 记录美好生活" behind)
- logging
- Cross-platform compatible
- support using proxy service
© 2016-2022 OwOBlog-DGMT
. Please comply with the open source license of this project for modification, derivative or commercial use of this project.
My Contacts: