Geo-related info extraction library for Bellingcat, Cen4InfoRes etc
Project description
geo_extractor
Library to extract geo-related information from databases such as Bellingcat, Cen4InfoRes, GeoConfirmed and DefMon3.
Installation
Install from PyPI:
pip install osint-geo-extractor
Usage
from geo_extractor import get_bellingcat_data
events = get_bellingcat_data()
for e in events[:10]:
print(f"{e.id}: [{e.latitude}, {e.longitude}]")
See also the examples/
folder.
Docs
Convenience functions:
get_bellingcat_data
get_ceninfores_data
get_defmon_data
get_geoconfirmed_data
Data is returned as a list of Event
objects:
Field | Type |
---|---|
id | str |
date | datetime |
latitude | float |
longitude | float |
place_desc | str |
title | str |
description | str |
source | str |
links | List[str] |
Data formats: See dataformats/
Exporting to GeoJSON: Use processors.format_as_geojson(data)
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "CIV0001",
"geometry": {
"type": "Point",
"coordinates": [
36.659031,
49.85005
]
},
"properties": {
"title": "<title>",
"date": "2022-02-24",
"description": "<desc>",
"links": [
"https://twitter.com/Michael1Sheldon/status/1496717647089651716",
"https://twitter.com/AFP/status/1496768532448788482"
],
"source": "BELLINGCAT"
}
}
]
}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osint-geo-extractor-0.0.3.tar.gz
(11.7 kB
view hashes)
Close
Hashes for osint-geo-extractor-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577456138235009bea54712d819ce529d881d70df0e268aff3e0396f21e1abda |
|
MD5 | 53002000811c0648ed776605f8e4cb2b |
|
BLAKE2b-256 | 636e7e8f390e6bc08736234a66d616514d2a9972b35fc987fae5f9c949a35bca |