#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2015-1-8
@author: beyondzhou
@name: fetch_friends_followers.py
'''
# Fetch user friends followers id
def fetch_friends_followers():
# import
#import json
from login import weibo_login
from users import get_friends_followers_ids
# Access to sina api
weibo_api = weibo_login()
friends_ids, followers_ids = get_friends_followers_ids(weibo_api,
screen_name="beyondzhou8",
friends_limit=10,
followers_limit=10)
print friends_ids
print followers_ids
if __name__ == '__main__':
fetch_friends_followers()
# Getting all friends or followers for a user
def get_friends_followers_ids(weibo_api, screen_name=N