Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the response 403 from pexels - search_videos_pexels - failed to download videos, maybe the network is not available. if you are in China, please use a VPN. #504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Dreyfi
Copy link

@Dreyfi Dreyfi commented Sep 28, 2024

search_videos_pexels - failed to download videos, maybe the network is not available. if you are in China, please use a VPN.

search_videos_pexels - failed to download videos, maybe the network is not available. if you are in China, please use a VPN.
@LucasHenriqueDiniz
Copy link

LucasHenriqueDiniz commented Sep 30, 2024

That fixed the problem getting the videos, but I had problems downloading them too. This was solved when I added "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36" to the save_video function as well.

@Dreyfi
Copy link
Author

Dreyfi commented Sep 30, 2024

@LucasHenriqueDiniz Thank you for your test. I just updated the PR. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants