コード例 #1
0
        private static void AfrinicTSV()
        {
            var afrinicTsvWriter = new AfrinicTsvWriter();

            afrinicTsvWriter.NetworksWithLocationsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-NetworkLocations.tsv");
            afrinicTsvWriter.NetworksLocationPropertyCountsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", "Address", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-TopAddresses.tsv");
            afrinicTsvWriter.NetworksLocationPropertyCountsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", "Street", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-TopStreets.tsv");
            afrinicTsvWriter.NetworksLocationPropertyCountsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", "City", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-TopCities.tsv");
            afrinicTsvWriter.NetworksLocationPropertyCountsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", "Country", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-TopCountries.tsv");
            afrinicTsvWriter.NetworksLocationPropertyCountsToTsv(@"C:\Projects\Whois\AFRINIC\Raw\2016\08\18\whois_dump", "PostalCode", @"C:\Projects\Whois\AFRINIC\Processed\2016\08\18\2016-08-18-AFRINIC-TopPostalCodes.tsv");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: timmytimj/WhoisParsers
        private static void TypeCountsToTsv()
        {
            var rwhoisTsvWriter = new RWhoisTsvWriter();

            rwhoisTsvWriter.TypeCountsToTsv(
                inputFolderPath: @"E:\Projects\Whois\ARIN-RWhois\Raw\2019\01\17\",
                outputFilePath: @"E:\Projects\Whois\ARIN-RWhois\Processed\2019\01\17\2019-01-17-ARINRWhois-TypeCounts.tsv");

            rwhoisTsvWriter.TypeToFieldDistinctOcc(
                inputFolderPath: @"E:\Projects\Whois\ARIN-RWhois\Raw\2019\01\17\",
                outputFilePath: @"E:\Projects\Whois\ARIN-RWhois\Processed\2019\01\17\2019-01-17-ARINRWhois-TypeCountsFieldDistinctOcc.tsv");

            var arinTsvWriter = new ArinTsvWriter();

            arinTsvWriter.TypeCountsToTsv(
                inputFilePath: @"E:\Projects\Whois\ARIN\Raw\2019\01\17\arin_db.txt",
                outputFilePath: @"E:\Projects\Whois\ARIN\Processed\2019\01\17\2019-01-17-ARIN-TypeCounts.tsv");

            arinTsvWriter.TypeToFieldDistinctOcc(
                inputFilePath: @"E:\Projects\Whois\ARIN\Raw\2019\01\17\arin_db.txt",
                outputFilePath: @"E:\Projects\Whois\ARIN\Processed\2019\01\17\2019-01-17-ARIN-TypeCountsFieldDistinctOcc.tsv");

            var afrinicTsvWriter = new AfrinicTsvWriter();

            afrinicTsvWriter.TypeCountsToTsv(
                inputFilePath: @"E:\Projects\Whois\AFRINIC\Raw\2019\01\17\whois_dump",
                outputFilePath: @"E:\Projects\Whois\AFRINIC\Processed\2019\01\17\2019-01-17-AFRINIC-TypeCounts.tsv");

            afrinicTsvWriter.TypeToFieldDistinctOcc(
                inputFilePath: @"E:\Projects\Whois\AFRINIC\Raw\2019\01\17\whois_dump",
                outputFilePath: @"E:\Projects\Whois\AFRINIC\Processed\2019\01\17\2019-01-17-AFRINIC-TypeCountsFieldDistinctOcc.tsv");

            var apnicTsvWriter = new ApnicTsvWriter();

            apnicTsvWriter.TypeCountsToTsv(
                inputFilePath: @"E:\Projects\Whois\APNIC\Raw\2019\01\17\apnic.RPSL.db",
                outputFilePath: @"E:\Projects\Whois\APNIC\Processed\2019\01\17\2019-01-17-APNIC-TypeCounts.tsv");

            apnicTsvWriter.TypeToFieldDistinctOcc(
                inputFilePath: @"E:\Projects\Whois\APNIC\Raw\2019\01\17\apnic.RPSL.db",
                outputFilePath: @"E:\Projects\Whois\APNIC\Processed\2019\01\17\2019-01-17-APNIC-TypeCountsFieldDistinctOcc.tsv");

            var lacnicTsvWriter = new LacnicTsvWriter();

            lacnicTsvWriter.TypeCountsToTsv(
                inputFilePath: @"E:\Projects\Whois\LACNIC\Raw\2019\01\17\lacnic.db",
                outputFilePath: @"E:\Projects\Whois\LACNIC\Processed\2019\01\17\2019-01-17-LACNIC-TypeCounts.tsv");

            lacnicTsvWriter.TypeToFieldDistinctOcc(
                inputFilePath: @"E:\Projects\Whois\LACNIC\Raw\2019\01\17\lacnic.db",
                outputFilePath: @"E:\Projects\Whois\LACNIC\Processed\2019\01\17\2019-01-17-LACNIC-TypeCountsFieldDistinctOcc.tsv");

            var ripeTsvWriter = new RipeTsvWriter();

            ripeTsvWriter.TypeCountsToTsv(
                inputFilePath: @"E:\Projects\Whois\RIPE\Raw\2019\01\17\ripe.db",
                outputFilePath: @"E:\Projects\Whois\RIPE\Processed\2019\01\17\2019-01-17-RIPE-TypeCounts.tsv");

            ripeTsvWriter.TypeToFieldDistinctOcc(
                inputFilePath: @"E:\Projects\Whois\RIPE\Raw\2019\01\17\ripe.db",
                outputFilePath: @"E:\Projects\Whois\RIPE\Processed\2019\01\17\2019-01-17-RIPE-TypeCountsFieldDistinctOcc.tsv");
        }