Mining-the-Social-Web
Mining-the-Social-Web copied to clipboard
The official online compendium for Mining the Social Web (O'Reilly, 2011)
Doubt this line should be : scores.append((sentence_idx, max_cluster_score))
With reference to your reply on https://github.com/ptwobrussell/Mining-the-Social-Web/issues/15#issuecomment-22006680 I am starting a new thread here for example 1.3. It must be noted that I am using 1st edition of this book...
On pages 25-26, there is this code: q = '#MentionSomeoneImportantForYou' count = 100 search_results = twitter_api.search.tweets(q=q, count=count) # twitter_api is predefined and is working fine. statuses = search_results['statuses'] for _...
Example 7-3 ## 1. Code from github import Github ACCESS_TOKEN = '' USER = 'ptwobrussell' REPO = 'Mining-the-Social-Web' client = Github(ACCESS_TOKEN, per_page=100) user = client.get_user(USER) repo = user.get_repo(REPO) stargaers =...
Example 5-3. Harvesting tweets from a user or public timeline (the_tweet__harvest_timeline.py) ``` python import sys import time import twitter import couchdb import sys print sys.path sys.path.append('/Users/hike/Documents/Mining-the-Social-Web-master/python_code/twitter__util.py') import twitter__util from couchdb.design...
In the friends_followers__calculate_avg_influence_of_followers.py, there is: followers = r.mget([getRedisIdByUserId(follower_id, 'info.json') for follower_id in follower_ids]). However, when I run the script, it gave me "wrong number of arguments for 'mget' command".
Hi guys Anyone know informs me about this error below? I am using the prettytable 0.7.2 Example 6 did and it worked perfectly... thanks Traceback (most recent call last): File...
hello guys, I have error in example 6.2 (Standardizing common job titles and computing Their frequencies), exactly in line 35. I did the exercise 6.1 and ran cool Traceback (most...
Hi, I would really appreciate your help on the following issues: In example 3-6: After adding in Couch DB configuration path for couchpy( asbolute path "C:\Python27\Scripts\couchpy.exe" ) and restarting the...
Hello Matt, im having a problem with your new script introduction__retweet_visualization.py Trying to run the script but i get an error: next_results = search_results['search_metadata']['next_results'] KeyError: 'next_results' Any idea? Thnx anyway