Beispiel #1
0
        /// <summary>
        /// 根据定义的关键字查找
        /// </summary>
        public void SearchTweets()
        {
            foreach (var kv in db.getSearchKey())
            {
                ulong maxid;
                DebugLogger.Instance.W("SearchTweets:" + kv.Value + " >" + kv.Key);

                var bids   = TweetHelper.GetBlockedIDs(authuser);
                var result = SelfieTweetFilter.Filter(TweetHelper.SearchTweet(authapp, kv.Key, kv.Value, out maxid), bids);

                DebugLogger.Instance.W("SearchTweets newid  >" + maxid);
                db.updateSearchKey(kv.Key, maxid);

                if (result.Count > 0)
                {
                    var todownload = SelfieTweetFilter.GetImageURL(result).ToArray();
                    ImageDownloader.Download(todownload);
                }
            }
        }