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

Changing the video's name #10

Closed
Anosema opened this issue Jul 25, 2020 · 0 comments
Closed

Changing the video's name #10

Anosema opened this issue Jul 25, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Anosema
Copy link

Anosema commented Jul 25, 2020

To easily change the name of the newly downloaded video, you can use the cmd command "os.rename".

import os
from redvid import Downloader
 
reddit = Downloader()
reddit.url = 'https://v.redd.it/c8oic7ppc2751'
reddit.download()
 
# Now You Can Rename
new_name = 'A hawk.mp4'
os.rename(reddit.file_name, new_name)

(Thanks to elmoiv for the answer)

@elmoiv elmoiv closed this as completed Jul 25, 2020
@elmoiv elmoiv added the help wanted Extra attention is needed label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants