how to download images using google earth engine's python API
<p>I am using Google's Earth Engine API to access LandSat images. 
The program is as given below,</p>

<pre><code>import ee
ee.Initialize()
</code></pre>

<p><strong>Load a landsat image and select three bands.</strong></p>

<pre><code>landsat = ee.Image('LANDSAT/LC8_L1T_TOA
/LC81230322014135LGN00').select(['B4', 'B3', 'B2']);
</code></pre>

<p><strong>Create a geometry representing an export region.</strong></p>

<pre><code>geometry = ee.Geometry.Rectangle([116.2621, 39.8412, 116.4849, 40.01236]);
</code></pre>

<p><strong>Export the image, specifying scale and region.</strong></p>

<pre><code> export.image.toDrive({
    image: landsat,
    description: 'imageToDriveExample',
    scale: 30,  
    region: geometry
    });
</code></pre>

<p>it throws the following error.  </p>

<pre><code>Traceback (most recent call last):
File "e6.py", line 11, in &lt;module&gt;
export.image.toDrive({
NameError: name 'export' is not defined
</code></pre>

<p>Please Help. I am unable to find the right function to download images. </p>

<p>There is a typo in your code, <code>Export</code> should start from the capital letter. See <a href="https://developers.google.com/earth-engine/exporting" rel="nofollow">documentation</a>.</p>

python google-earth-engine