Skip to content

A location-based social network dashboard for privacy-aware analysis

License

Notifications You must be signed in to change notification settings

do-me/LBSN-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LBSN-Dashboard

DOI

Find the supplementary repo here or watch the videos!

A location-based social network dashboard for privacy-aware analysis based on LBSN structure, a Docker-based Postgres HyperLogLog implementation from Dunkel, Löchner, Krumpe et al. for LBSN analysis. More info here.

Disclaimer: This is a prototype for research purposes and not thought for production (subject to SQL-injection)!

WORKING DEMOS

LBSN-Dashboard

Content

  • Backend consisting of Python web framework (fastapi) excluding docker containers from LBSN structure
  • Frontend based on Leaflet and Geoman ready-to-deploy with plugin options (e.g. GeoJSON)

Data

Use my Fast-Instagram-Scraper to retrieve Data e.g. from Instagram. It's fast, easy to use and quickly read into the privacy-aware DB.

How to use

Preparation

  1. Set up LBSN Docker container with pgadmin (good for quickly checking SQL statements but not necessary) and HLL-DB
  2. Download some data from any LBSN such as Instagram. If you use Fast-Instagram-Scraper you can use lbsntransform to read the data into the DB with the following command, automatically using instagram-mapping-for-fast-instagram-scraper.py (thanks and credits to Alexander Dunkel!)
lbsntransform --origin 13 --input_path_url "path/to/data/fast-instagram-scraper/your-area-of-interest" --file_input --dbpassword_output "eX4mP13p455w0Rd" --dbuser_output "postgres" --dbserveraddress_output "127.0.0.1:25432 " --dbname_output "hlldb" --dbformat_output "hll" --dbpassword_hllworker "eX4mP13p455w0Rd" --dbuser_hllworker "postgres" --dbserveraddress_hllworker "127.0.0.1:25432 " --dbname_hllworker "hlldb" --include_lbsn_objects "origin,post" --file_type "json" --mappings_path "/mappings/" --include_lbsn_bases hashtag,place,date,community,latlng

Dashboard

  1. Clone repo
  2. Install Python dependencies
  3. Start Docker container with HLL-DB
  4. Adjust DB connection details in main.py, remove my bounding boxes for Bonn
  5. Start backend with python app.py
  6. Go to localhost:8000

Contact

For any questions contact me or find me on my blog.