Comments (2)
@osmboy 修改 material.py,比如下面
@harry0703 是否可以加个配置项到config
proxies={
"http":"http://127.0.0.1:1082",
"https":"http://127.0.0.1:1082",
}
def save_video(video_url: str, save_dir: str) -> str:
video_id = f"vid-{str(int(time.time() * 1000))}"
video_path = f"{save_dir}/{video_id}.mp4"
with open(video_path, "wb") as f:
f.write(requests.get(video_url, proxies=proxies).content)
return video_path
from moneyprinterturbo.
@fenglui 已增加配置项
[pexels]
[pexels.proxies]
### Use a proxy to access the Pexels API
### Format: "http://<username>:<password>@<proxy>:<port>"
### Example: "http://user:pass@proxy:1234"
### Doc: https://requests.readthedocs.io/en/latest/user/advanced/#proxies
# http = "http://10.10.1.10:3128"
# https = "http://10.10.1.10:1080"
from moneyprinterturbo.
Related Issues (20)
- OSError: MoviePy Error: creation of None failed because of the following error HOT 2
- 如何突破禁用限制 HOT 1
- 进群 二维码过期了 HOT 1
- about VPN HOT 1
- 端口8501在哪儿定义的? HOT 1
- Ollama Set Up HOT 5
- why the memory usage always increased, do we have recommended device configure? HOT 2
- 出现名为 AttributeError: 'NoneType' object has no attribute 'get' 的错误 HOT 4
- AttributeError: 'NoneType' object has no attribute 'get' HOT 1
- Help! 什么是 “”模型名称 (需要到大模型提供商的后台确认被授权的模型名称)" HOT 1
- Errno 10048 Help HOT 1
- failed to download videos, maybe the network is not available. HOT 3
- 运行时报错类型错误 HOT 1
- OSError: [Errno 32] Broken pipe MoviePy error: FFMPEG encountered the following error while writing file HOT 1
- VPS上docker部署,执行出错了 HOT 3
- NoneType
- 选择本地图片生成视频,内存泄漏 HOT 1
- 建议:生成视频的网络素材来源支持自定义。 HOT 2
- Please change the source video (background video) from 16:9 to 9:16 HOT 1
- Moonshot现在不能用了吗?换了个账户还是报错429 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 moneyprinterturbo.