Sedang Disiapkan

Fix my Python boto download sciprt

This is my current code:

from [url removed, login to view] import S3Connection

from [url removed, login to view] import Key

import sys

conn = S3Connection('____________________', '________________________________________')

bucket = conn.get_bucket('bucketname')

rs = [url removed, login to view]("FamilyPhotos")

for key in rs:

print [url removed, login to view]

keys = [key for key in bucket]

latest = max(keys)

latest.get_contents_to_filename()

Currently it doesnt work. I have files in my s3 bucket in a specific folder which have filenames formatted in the following way:

YYYYMMDDHHMMSS

[url removed, login to view]

[url removed, login to view]

At the moment there is some pseudo code in there that I am not sure how to replace it with the correct python code. What it is designed to do is establish a connection to my S3 bucket and download a file which has the most recent filename.

Kemahiran: Perkhidmatan Web Amazon, Python

Lihat lebih lanjut: python download file, download file python, code sys, pseudo code, boto python, python fix code, amazon boto, boto, boto download, fix python, python download, import files folder, python boto, amazon print, download zip files, connection python, fix print, python fix, name download, print list python, python fix cpu, download amazon, amazon list files, mysql replace script python, python amazon

Tentang Majikan:
( 70 ulasan ) Bristol, United Kingdom

ID Projek: #4047235

Dianugerahkan kepada:

prabhatg

I've alredy tried it. Just 3 lines of code.

£20 GBP dalam 0 hari
(2 Ulasan)
1.0

5 pekerja bebas membida secara purata £21 untuk pekerjaan ini

matthulse

I can help you with this. Let's get started today.

£25 GBP dalam 2 hari
(3 Ulasan)
2.9
kevogich

I understand the problem .And i only bid low because am new here.

£20 GBP dalam sehari
(0 Ulasan)
0.0
thevoidvw

I'm an experienced Python developer and can make this work for you.

£20 GBP dalam sehari
(0 Ulasan)
0.0
jungleru

Hello, I have experience with boto, I can fix this script.

£20 GBP dalam sehari
(0 Ulasan)
0.0