How to import geojson file to python for using Sentinelsat package

Hi I’m trying to run the Sentinelsat package from the python.

The problem is even i made Geojson file from http://geojson.io as following, I don’t know how to put this in python for running the Sentinelsat package?

{
“type”: “FeatureCollection”,
“features”: [
{
“type”: “Feature”,
“properties”: {},
“geometry”: {
“type”: “Polygon”,
“coordinates”: [
[
[
-68.7359619140625,
45.85941212790755
],
[
-67.15393066406249,
45.85941212790755
],
[
-67.15393066406249,
47.35371061951363
],
[
-68.7359619140625,
47.35371061951363
],
[
-68.7359619140625,
45.85941212790755
]
]
]
}
}
]

And what is your actual problem?
You know this one? https://pypi.python.org/pypi/geojson
Have a look in the GeoJSON encoding/decoding section

save the geojson file from http://geojson.io on your local pc in the same folder as your python script (I saved it as map.geojson)

Now run this line of code: (with user and password as your own)

from sentinelsat.sentinel import SentinelAPI, get_coordinates

api = SentinelAPI(user, password, ‘https://scihub.copernicus.eu/dhus’)

#search by polygon, time, and SciHub query keywords https://scihub.copernicus.eu/userguide/3FullTextSearch
products = api.query(get_coordinates(‘map.geojson’),
‘20170112’, ‘20170113’,
platformname = ‘Sentinel-1’,
producttype = ‘SLC’)

download all results from the search

api.download_all(products)