LinkMeUp-Analytics is the backend to a dynamic, Google Maps-based visualization of the LinkMeUp userbase (http://www.linkmeupmessenger.com/map/).
How it works
calc_user_stats.py runs as a cron job on an AWS EC2 instance, periodically updating a local MongoDB collection with data pulled from LinkMeUp's backend database via get_class_data.py.
In particular, calc_user_stats.py uses module phone_lookup_whitepages.py to get location data for new users, and module analyze_session.py to extract insights from session logs.
Finally, backend.py acts as the web server backend to the userbase map. In response to AJAX requests from the frontend, it queries the mongo collection for valid records and returns data on cities with LinkMeUp users.