title: How do I translate an AWS S3 url into a bucket name for boto?
body: <p>I'm trying to access the <a href="http://s3.amazonaws.com/commoncrawl/parse-output/segment/" rel="nofollow">http://s3.amazonaws.com/commoncrawl/parse-output/segment/</a> bucket with boto.  I can't figure out how to translate this into a name for boto.s3.bucket.Bucket().  </p>
  
  <p>This is the gist of what I'm going for:</p>
  
  <pre><code>s3 = boto.connect_s3()
  cc = boto.s3.bucket.Bucket(connection=s3, name='commoncrawl/parse-output/segment')
  requester = {'x-amz-request-payer':'requester'}
  contents = cc.list(headers=requester)
  for i,item in enumerate(contents):
      print item.__repr__()
  </code></pre>
  
  <p>I get "boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request ... The specified bucket is not valid..."</p>