O'Reilly logo

Python Social Media Analytics by Michal Krystyanczuk, Siddhartha Chatterjee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data processing

Now that the data is extracted, it's time to process it and prepare for the final analysis.

The full_data variable will contain a list of items, where a single item looks as follows:

{'etag': '"m2yskBQFythfE4irbTIeOgYYfBU/XgRZI3UhbKRFQZGd-n-2OCOKR8A"', 
 'id': 'z13jynay3seygpvzy04cef5r2tm5ihh4d0k', 
 'kind': 'youtube#commentThread', 
 'snippet': {'canReply': False, 
  'isPublic': True, 
  'topLevelComment': {'etag': '"m2yskBQFythfE4irbTIeOgYYfBU/jW3EfLcy4MnIFrtFloQEjokBPXU"', 'id': 'z13jynay3seygpvzy04cef5r2tm5ihh4d0k', 'kind': 'youtube#comment', 'snippet': {'authorChannelId': {'value': 'UCuJkT4Bsd1qiIQoI8Rbf_hg'}, 'authorChannelUrl': 'http://www.youtube.com/channel/UCuJkT4Bsd1qiIQoI8Rbf_hg', 'authorDisplayName': 'Vince / FCB', 'authorProfileImageUrl': ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required