Facebook Live Map is a platform that shows all ongoing live videos published by public pages and profiles. These videos are appearing on the map as dots that represent the locations of the publishers. When we hover over the dots, the locations of the viewers appear as outward lines. Using this map, we can extract different videos IDs every interval of time (3 minutes in our case). This interval can be reduced to have a finer granularity data.
The Extracted data is stored into Mongodb no-sql database. Mongodb can be downloaded from their official website.
The structure of the database is described as follows:
Collected data structure:
Extended data structure:
1. To get the videos metadata, we use Facebook Graph API.
2. The code is written in Python. Multiple libraries need to be installed:
3. A Facebook developer account should be created and many permissions should be obtained from Facebook including: permission for Live video API, permission for users locations API, etc.
4. A non-expiry access token from the Facebook developer account should be also obtained.
We are working on enhancing the code. It will be published soon.
The code can be downloaded from here:
Data collection code: DataCollection
Extend your data: ExtendDataSet