Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- # Create target Directory if it doesn't exist
- if not os.path.exists('/content/drive/MyDrive/Cloud-Downloads'):
- os.mkdir('/content/drive/MyDrive/Cloud-Downloads')
- os.chdir('/content/drive/MyDrive/Cloud-Downloads')
- # Read links from the text file
- with open('/content/drive/MyDrive/Cloud-Downloads/links.txt', 'r') as file:
- links = file.readlines()
- # Remove any leading/trailing whitespace and newline characters
- links = [link.strip() for link in links]
- for link in links:
- !wget -c {link} --no-check-certificate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement