全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 winbugs及其他软件专版
1551 8
2017-08-13
Python Social Media Analytics

本帖隐藏的内容

https://github.com/PacktPublishing/Python-Social-Media-Analytics



This is the code repository for Python Social Media Analytics, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Social Media platforms such as Facebook, Twitter, Forums, Pinterest, and YouTube have become part of everyday life in a big way. However, these complex and noisy data streams pose a potent challenge to everyone when it comes to harnessing them properly and benefiting from them. This book will introduce you to the concept of social media analytics, and how you can leverage its capabilities to empower your business.

Right from acquiring data from various social networking sources such as Twitter, Facebook, YouTube, Pinterest, and social forums, you will see how to clean data and make it ready for analytical operations using various Python APIs. This book explains how to structure the clean data obtained and store in MongoDB using PyMongo. You will also perform web scraping and visualize data using Scrappy and Beautifulsoup.

Finally, you will be introduced to different techniques to perform analytics at scale for your social data on the cloud, using Python and Spark. By the end of this book, you will be able to utilize the power of Python to gain valuable insights from social media data and use them to enhance your business processes.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

{ "cells": [  {   "cell_type": "code",   "execution_count": 36,   "metadata": {    "collapsed": true   },   "outputs": [],   "source": [    "import requests\n",    "\n",    "results = []\n",    "q = \"created:>2017-01-01\"\n",    "\n",    "def search_repo_paging(q):\n",    "    params = {'q' : q, 'sort' : 'forks', 'order': 'desc', 'per_page' : 100}\n",    "    url = 'https://api.github.com/search/repositories'\n",    "\n",    "    while True:\n",    "\n",    "        res = requests.get(url, params = params)\n",    "        result = res.json()\n",    "        results.extend(result['items'])\n",    "        params = {}\n",    "\n",    "        try:\n",    "            url = res.links['next']['url']\n",    "        except:\n",    "            break"   ]  },Related ProductsSuggestions and Feedback

Click here if you have any feedback or suggestions.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-8-13 06:44:03
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-13 06:44:53
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-13 06:56:43
ReneeBK 发表于 2017-8-13 06:39
Python Social Media Analytics**** 本内容被作者隐藏 ****

This is the code repository for Python So ...
谢谢分享
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-13 07:35:25
谢谢楼主分享!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-8-13 07:35:41
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群