import snaide group = set([]) friends = snaide.get_all_friends(None, 47173) for friend in friends: g = snaide.groups_with_user_as_member(None, friend) for j in g: if not snaide.is_user_member_of_group(47173, j): group.add(j) print "These are the groups you may be interested in : \n" for e in group: print snaide.get_group_name(e)
import snaide print snaide.get_all_friends("Stephany Streich IV", None)
import snaide friends_count = snaide.get_all_friends_count(None, 48158) friends = snaide.get_all_friends(None, 48158) pages_sum = 0 comments_sum = 0 statuses_count = 0 status_likes_count = 0 blogs_count = 0 blog_likes_count = 0 groups_count = 0 groups = set([]) for friend in friends: pages_sum = pages_sum + len(snaide.get_pages_liked_by(None, friend)) comments_sum = comments_sum + len(snaide.get_comments_by(None, friend)) statuses = snaide.get_statuses_by(None, friend) statuses_count = statuses_count + len(statuses) for status_id in statuses: status_likes_count = status_likes_count + snaide.get_likes_on_single_status(status_id) blogs = snaide.get_blogs_by_user(None, friend) blogs_count = blogs_count + len(blogs) for blog_id in blogs: blog_likes_count = blog_likes_count + snaide.get_blog_likers_count(None, blog_id) for g in snaide.groups_with_user_as_member(None, friend): groups.add ( g )
print print snaide.get_all_blogs_count() print print snaide.get_all_groups_count() print print snaide.get_all_status_likes_count() print print snaide.get_all_friends(None, user_guid) print print snaide.get_all_friends_count(None, user_guid) print print snaide.get_comments_by(None, user_guid) print print snaide.get_group_owner(None, group_guid) print
import snaide friends_1 = snaide.get_all_friends(None, 47173) print "Friend Suggester" print print "These are the users, You can add as your Firends" print for i in friends_1: friends_2 = snaide.get_all_friends(None, i) for j in friends_2: if snaide.is_friend(j, i) and not snaide.is_friend(j, 47173): print snaide.get_user_name(j)