print


print snaide.get_blog_description(None, blog_guid)
print


print snaide.get_blog_tags(None, blog_guid)
print


print snaide.get_blog_created_time(None, blog_guid)
print


print snaide.get_blogs_by_user(None, user_guid)
print


print snaide.get_blog_likers_count(None, blog_guid)
print


print snaide.get_blog_commentator_count(None, blog_guid)
print


print snaide.get_all_users()
print

Ejemplo n.º 2
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 )
	
groups_count = groups_count + len(groups)

print "Average Pages Liked by Friends : "+str(pages_sum/friends_count)
print "Average Comments by Friends : "+str(comments_sum/friends_count)
print "Average Statuses posted by Friends : "+str(statuses_count/friends_count)
print "Average Likes on Statuses by Friends : "+str(status_likes_count/friends_count)
print "Average Blogs by Friends : "+str(blogs_count/friends_count)
print "Average Blogs Liked by Friends : "+str(blog_likes_count/friends_count)
Ejemplo n.º 3
0
import snaide

groups = snaide.get_all_groups()

maximum = 0

for group in groups:
	count = 0
	members = snaide.get_group_members(None, group)
	for member in members:
		count = count + len(snaide.get_blogs_by_user(None, member))

	if count > maximum:
		maximum = count
		ret_group = group

print maximum, snaide.get_group_name(ret_group)
import snaide

groups = snaide.get_all_groups()

maxie = 0

for group in groups:
	count = 0
	members = snaide.get_group_members(None, group["guid"])
	for member in members:
		count = count + len(snaide.get_blogs_by_user(None, member["guid"]))

	if count > maxie:
		maxie = count
		ret_group = group

print maxie, snaide.get_group_name(ret_group["guid"])