title: Best way to send images from URL to python POST requests
body: <p>I am working on a script which will take a product link from a user and fetch that from information as a JSON body and extract some necessary information like </p>
  
  <pre class="lang-py prettyprint-override"><code>title = data['screens'][0]['meta']['default_value']['title']
  desc  = data['screens'][0]['meta']['default_value']['description']
  price  = data['screens'][0]['meta']['default_value']['price']
  collection_id  = data['screens'][0]['meta']['default_value']['collection']['cc_id']
  shipping  = data['screens'][0]['meta']['default_value']['mailing_details']
  img_url = data['screens'][0]['meta']['default_value']['photos'][0]['image_url']
  </code></pre>
  
  <pre><code>title -&gt; Baby Toys product number - 1
  desc  -&gt; This is description of the product
  price -&gt; 52
  collection_id -&gt; 24
  Shipping -&gt; Free
  photo_1 -&gt; http://cdn.test.com/media/213234/cover.jpg
  </code></pre>
  
  <p>Now I want to send a post request to another api using this information</p>
  
  <pre class="lang-py prettyprint-override"><code>data = {
      'mailing_details': shipping,
      'multi_quantities': 'true',
      'abcpay':'false',
      'price': price,
      'description':desc,
      'title':title,
      'meetup':'false',
      'condition':'2',
      'mailing':'true',
      'collection_id':collection_id
      }
  </code></pre>
  
  <p>UPLOAD API</p>
  
  <pre class="lang-py prettyprint-override"><code>files = {'photo_1': ('img_url', 'image/jpeg')}
  response = requests.request("POST", url_and,data=data,files=files,headers=headers)
  
  </code></pre>
  
  <p>Now what I want to do is bind that image from img_url to files dict and send files as a POST requests.</p>
  
  <p>Thanks</p>