Пример #1
0
        public static void SplitTwitterListIntoHandleChunks(string creator, string listName, string category, int listSize = 88)
        {
            TwitterDataSourcer.SetCredentials();

            var usersFromList = TwitterDataSourcer.GetUsersFromList(listName, creator) as IList <IUser>;

            if (usersFromList == null)
            {
                return;
            }

            var names  = usersFromList.Select(user => user.ScreenName).ToList();
            var chunks = SplitList(names, listSize);

            var index = 0;

            foreach (var list in chunks)
            {
                var path = "C:/Users/Nishant/Desktop/Dropbox/Ouzero/" + listName + "/" + category + "-ToDo-" + index + ".csv";
                WriteFile(path, list);
                index++;
            }
        }
Пример #2
0
 public void Setup()
 {
     TwitterDataSourcer.SetCredentials();
 }