Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def upload(s):
- conn=tinys3.Connection("AKIAJPOZEBO47FJYS3OA","04IZL8X9wlzBB5LkLlZD5GI/",tls=True)
- f = open(s,'rb')
- z=str(datetime.datetime.now().date())
- x=z+'/'+s
- conn.upload(x,f,'crawling1')
- os.remove(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement