Comments (2)
皮皮虾的,我这边给修复了,可以下载视频了。代码我贴上去一下
author: wongxy
--------------
https://h5.pipix.com/item/******************
import re
import requests
def get(url: str) -> dict:
"""
title、audios
"""
data = {}
headers = {
"user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25"
}
item_id = re.findall(r"item/(\d+)", requests.get(url=url).url)
if not item_id:
return {"msg": "获取失败"}
item_id = item_id[0]
info_url = f"https://h5.pipix.com/bds/webapi/item/detail/?item_id={item_id}&source=share"
with requests.get(info_url, headers=headers, timeout=10) as rep:
if rep.status_code != 200 or rep.json().get("status_code") != 0:
return {"msg": "获取失败"}
info = rep.json()["data"]["item"]
data["title"] = info["share"]["title"]
# data["audios"] = [info["origin_video_download"]["url_list"][0]["url"]]
videoUrl = [info["video"]["video_download"]["url_list"][0]["url"]]
if videoUrl is None or len(videoUrl) == 0:
videoUrl = [info["video"]["video_download"]["url_list"][1]["url"]]
data["videos"] = videoUrl
return data
if name == "main":
print(get(input("url: ")))
from spiders.
皮皮虾网页播放已经没有无水印的接口了
from spiders.
Related Issues (20)
- kuaishou
- How to make the extact.py download the mp4? HOT 5
- kuaishou HOT 3
- 西瓜视频 HOT 1
- kuaishou live video support
- bilibili 高清mp4 HOT 5
- ies douyin support HOT 2
- https://v.douyin.com/Jdg9Uxx/ 此链接报错,其它正常
- 抖音不能用了 返回的链接 没东西 HOT 2
- 没法批量下载
- 无法下载QQ音乐的无损啊
- 希望添加更多的视频下载spider,我很需要 HOT 1
- kuaishou解析的方式好像更新了。
- 荔枝fm屏蔽了网页端播放 HOT 1
- 知乎视频不能用了
- 短视频的链接能爬吗 HOT 1
- 网易云音乐的接口也不能用了 HOT 1
- 我能否将此项目中的部分代码用于我的项目?
- 快手的视频爬不了了呀。kuaishou.py 26行返回空 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spiders.