예제 #1
0
        public async Task GetSecDownloadTest()
        {
            string bakerBrotherRSS = "http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0001263508&type=4%25&dateb=&owner=include&start=0&count=100&output=atom";
            var    setting         = new SecEdgarSetting();
            var    downloader      = new SecEdgarDownloader(setting);

            var feed = AtomFeed(bakerBrotherRSS);
            var sb   = new StringBuilder(200);

            foreach (var link in feed.Items)
            {
                var linkUrl = link.Links[0].Uri.AbsoluteUri;
                var result  = await downloader.DownloadObjectTaskAsync(linkUrl).ConfigureAwait(false);

                sb.AppendLine(result.ToString());
            }

            //MyHelper.SendEmail("Institution Baker Brother accumulation Action ", sb.ToString(), friendsEmail);
        }
예제 #2
0
 public SecEdgarDownloader(SecEdgarSetting setting)
     : base(setting)
 {
 }