from datetime import datetime
from dateutil.tz import tzoffset

{
    'quality_grade': 'research',
    'time_observed_at': '2018-09-05T14:06:00+02:00',
    'taxon_geoprivacy': None,
    'annotations': [
        {
            'user_id': 886482,
            'concatenated_attr_val': '1|2',
            'controlled_attribute_id': 1,
            'votes': [],
            'uuid': '14bbd34f-73f8-4b99-b591-8517913788a1',
            'vote_score': 0,
            'controlled_value_id': 2,
            'user': {
                'id': 886482,
                'login': 'niconoe',
                'spam': False,
                'suspended': False,
                'created_at': '2018-04-23T17:11:14+00:00',
                'login_autocomplete': 'niconoe',
                'login_exact': 'niconoe',
                'name': 'Nicolas Noé',
                'name_autocomplete': 'Nicolas Noé',
                'orcid': 'https://orcid.org/0000-0002-9503-4750',
                'icon': 'https://static.inaturalist.org/attachments/users/icons/886482/thumb.jpg?1529671435',
                'observations_count': 928,
                'identifications_count': 118,
                'journal_posts_count': 0,
                'activity_count': 1046,
                'species_count': 395,
                'universal_search_rank': 928,
                'roles': [],
                'site_id': 1,
                'icon_url': 'https://static.inaturalist.org/attachments/users/icons/886482/medium.jpg?1529671435',
            },
        }
    ],
    'uuid': '6448d03a-7f9a-4099-86aa-ca09a7740b00',
    'id': 16227955,
    'cached_votes_total': 0,
    'identifications_most_agree': True,
    'species_guess': 'Lixus bardanae',
    'identifications_most_disagree': False,
    'tags': [],
    'positional_accuracy': 23,
    'comments_count': 2,
    'site_id': 1,
    'license_code': 'cc0',
    'quality_metrics': [],
    'public_positional_accuracy': 23,
    'reviewed_by': [180811, 886482, 1226913],
    'oauth_application_id': None,
    'flags': [],
    'created_at': datetime(2018, 9, 5, 14, 31, 8, tzinfo=tzoffset(None, 7200)),
    'description': '',
    'project_ids_with_curator_id': [],
    'updated_at': datetime(2018, 9, 22, 19, 19, 27, tzinfo=tzoffset(None, 7200)),
    'sounds': [],
    'place_ids': [
        7008,
        8657,
        14999,
        59614,
        67952,
        80627,
        81490,
        96372,
        96794,
        97391,
        97582,
        108692,
    ],
    'captive': False,
    'taxon': {
        'is_active': True,
        'ancestry': '48460/1/47120/372739/47158/184884/47208/71130/372852/60473/48736/272543/507383/71157/1101667',
        'min_species_ancestry': '48460,1,47120,372739,47158,184884,47208,71130,372852,60473,48736,272543,507383,71157,1101667,493595',
        'endemic': False,
        'iconic_taxon_id': 47158,
        'min_species_taxon_id': 493595,
        'threatened': False,
        'rank_level': 10,
        'introduced': False,
        'native': False,
        'parent_id': 1101667,
        'name': 'Lixus bardanae',
        'rank': 'species',
        'extinct': False,
        'id': 493595,
        'ancestor_ids': [
            48460,
            1,
            47120,
            372739,
            47158,
            184884,
            47208,
            71130,
            372852,
            60473,
            48736,
            272543,
            507383,
            71157,
            1101667,
            493595,
        ],
        'photos_locked': False,
        'taxon_schemes_count': 1,
        'wikipedia_url': None,
        'current_synonymous_taxon_ids': None,
        'created_at': '2016-04-25T22:35:20+00:00',
        'taxon_changes_count': 0,
        'complete_species_count': None,
        'universal_search_rank': 44,
        'observations_count': 44,
        'flag_counts': {'unresolved': 0, 'resolved': 0},
        'atlas_id': None,
        'default_photo': {
            'square_url': 'https://static.inaturalist.org/photos/69087254/square.jpg?1587876286',
            'attribution': '(c) Andy Van de Velde, all rights reserved',
            'flags': [],
            'medium_url': 'https://static.inaturalist.org/photos/69087254/medium.jpg?1587876286',
            'id': 69087254,
            'license_code': None,
            'original_dimensions': {'width': 2048, 'height': 1638},
            'url': 'https://static.inaturalist.org/photos/69087254/square.jpg?1587876286',
        },
        'iconic_taxon_name': 'Insecta',
    },
    'ident_taxon_ids': [
        48460,
        1,
        47120,
        372739,
        47158,
        184884,
        47208,
        71130,
        372852,
        60473,
        48736,
        272543,
        507383,
        71157,
        1101667,
        493595,
    ],
    'outlinks': [{'source': 'GBIF', 'url': 'http://www.gbif.org/occurrence/1914197587'}],
    'faves_count': 0,
    'ofvs': [],
    'num_identification_agreements': 2,
    'preferences': {'prefers_community_taxon': None},
    'comments': [
        {
            'moderator_actions': [],
            'hidden': False,
            'flags': [],
            'created_at': '2018-09-05T14:08:09.350Z',
            'id': 2071611,
            'created_at_details': {
                'date': '2018-09-05',
                'week': 36,
                'month': 9,
                'hour': 14,
                'year': 2018,
                'day': 5,
            },
            'body': 'suspect L. bardanae - but sits on Solanum (non-host)',
            'uuid': 'e6fc62ea-e22b-4427-bb65-1ba3bc591c77',
            'user': {
                'created_at': '2016-02-18T10:19:19+00:00',
                'id': 180811,
                'login': 'borisb',
                'spam': False,
                'suspended': False,
                'login_autocomplete': 'borisb',
                'login_exact': 'borisb',
                'name': '',
                'name_autocomplete': '',
                'orcid': None,
                'icon': None,
                'observations_count': 0,
                'identifications_count': 286253,
                'journal_posts_count': 0,
                'activity_count': 286253,
                'species_count': 0,
                'universal_search_rank': 0,
                'roles': ['curator'],
                'site_id': 1,
                'icon_url': None,
            },
        },
        {
            'moderator_actions': [],
            'hidden': False,
            'flags': [],
            'created_at': '2018-09-05T16:03:40.937Z',
            'id': 2071896,
            'created_at_details': {
                'date': '2018-09-05',
                'week': 36,
                'month': 9,
                'hour': 16,
                'year': 2018,
                'day': 5,
            },
            'body': 'I now see: Bonus species on observation! You may make a duplicate . . . \n(Flea beetle Epitrix pubescens on Solanum bud) \n',
            'uuid': '4d401d20-1b08-464a-8287-351f5b57443e',
            'user': {
                'created_at': '2016-02-18T10:19:19+00:00',
                'id': 180811,
                'login': 'borisb',
                'spam': False,
                'suspended': False,
                'login_autocomplete': 'borisb',
                'login_exact': 'borisb',
                'name': '',
                'name_autocomplete': '',
                'orcid': None,
                'icon': None,
                'observations_count': 0,
                'identifications_count': 286253,
                'journal_posts_count': 0,
                'activity_count': 286253,
                'species_count': 0,
                'universal_search_rank': 0,
                'roles': ['curator'],
                'site_id': 1,
                'icon_url': None,
            },
        },
    ],
    'map_scale': 17,
    'uri': 'https://www.inaturalist.org/observations/16227955',
    'project_ids': [],
    'community_taxon_id': 493595,
    'geojson': {'coordinates': [4.360086, 50.646894], 'type': 'Point'},
    'owners_identification_from_vision': True,
    'identifications_count': 2,
    'obscured': False,
    'num_identification_disagreements': 0,
    'geoprivacy': None,
    'location': [50.646894, 4.360086],
    'votes': [],
    'spam': False,
    'user': {
        'site_id': 1,
        'created_at': '2018-04-23T17:11:14+00:00',
        'id': 886482,
        'login': 'niconoe',
        'spam': False,
        'suspended': False,
        'preferences': {},
        'login_autocomplete': 'niconoe',
        'login_exact': 'niconoe',
        'name': 'Nicolas Noé',
        'name_autocomplete': 'Nicolas Noé',
        'orcid': 'https://orcid.org/0000-0002-9503-4750',
        'icon': 'https://static.inaturalist.org/attachments/users/icons/886482/thumb.jpg?1529671435',
        'observations_count': 928,
        'identifications_count': 118,
        'journal_posts_count': 0,
        'activity_count': 1046,
        'species_count': 395,
        'universal_search_rank': 928,
        'roles': [],
        'icon_url': 'https://static.inaturalist.org/attachments/users/icons/886482/medium.jpg?1529671435',
    },
    'mappable': True,
    'identifications_some_agree': True,
    'project_ids_without_curator_id': [],
    'place_guess': '54 rue des Badauds',
    'identifications': 'TRUNCATED',
    'project_observations': [],
    'photos': [
        {
            'id': 24355315,
            'license_code': 'cc-by',
            'url': 'https://static.inaturalist.org/photos/24355315/square.jpeg?1536150664',
            'attribution': '(c) Nicolas Noé, some rights reserved (CC BY)',
            'original_dimensions': {'width': 1445, 'height': 1057},
            'flags': [],
        },
        {
            'id': 24355313,
            'license_code': 'cc-by',
            'url': 'https://static.inaturalist.org/photos/24355313/square.jpeg?1536150659',
            'attribution': '(c) Nicolas Noé, some rights reserved (CC BY)',
            'original_dimensions': {'width': 2048, 'height': 1364},
            'flags': [],
        },
    ],
    'observation_photos': [
        {
            'id': 22080796,
            'position': 0,
            'uuid': '76b54495-3497-4e96-b07c-7ad346939a02',
            'photo': {
                'id': 24355315,
                'license_code': 'cc-by',
                'url': 'https://static.inaturalist.org/photos/24355315/square.jpeg?1536150664',
                'attribution': '(c) Nicolas Noé, some rights reserved (CC BY)',
                'original_dimensions': {'width': 1445, 'height': 1057},
                'flags': [],
            },
        },
        {
            'id': 22080797,
            'position': 1,
            'uuid': '06b90a88-d98d-4447-b14c-5d354d2d68d1',
            'photo': {
                'id': 24355313,
                'license_code': 'cc-by',
                'url': 'https://static.inaturalist.org/photos/24355313/square.jpeg?1536150659',
                'attribution': '(c) Nicolas Noé, some rights reserved (CC BY)',
                'original_dimensions': {'width': 2048, 'height': 1364},
                'flags': [],
            },
        },
    ],
    'faves': [],
    'non_owner_ids': 'TRUNCATED',
    'observed_on': datetime(2018, 9, 5, 14, 6, tzinfo=tzoffset('Europe/Paris', 3600)),
}
