def handle(self, *args, **options):
    dropbox = options['dropbox']
    p1 = dropbox.partition('?')
    p2 = p1[0].rpartition('/')
    filename = p2[2]
    url = dropbox.replace('?dl=0', '?dl=1')
    with open(filename, 'wb') as file:
        response = requests.get(url)
        file.write(response.content)
    self.stdout.write('Uploaded {0}'.format(filename))
    return
def handle(self, *args, **options):
    dropbox = options['dropbox']
    p1 = dropbox.partition('?')
    p2 = p1[0].rpartition('/')
    filename = p2[2]
    url = dropbox.replace('?dl=0', '?dl=1')
    with open(filename, 'wb') as file:
        response = requests.get(url)
        file.write(response.content)
    self.stdout.write('Uploaded {0}'.format(filename))
    return