소스 검색

Update seed with saints+lords

spesk1 4 년 전
부모
커밋
f30d033424
3개의 변경된 파일339개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      name_gen.pl
  2. 18 0
      parse.pl
  3. 316 0
      seed_data.txt

+ 5 - 0
name_gen.pl

@@ -82,6 +82,11 @@ if ( defined $ARGV[1] && $ARGV[1] eq "--gen-seed" ) {
 	open(my $fh, '>', "generated_seed.txt");
 	print $fh $word_list;
 	close $fh;
+	my $sorted_list = `cat generated_seed.txt | sort | uniq`;
+	open(my $fh2, '>', "generated_seed.txt");
+	print $fh2 $sorted_list;
+	close $fh2;
+
 	exit 0;
 }
 

+ 18 - 0
parse.pl

@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+# Scratch pad for parsing webpages for lists
+# of different words/names, for the seed file
+
+my @page = split("\n", `cat saints.html`);
+
+foreach my $line ( @page ) {
+	if ( $line =~ m/<td data-sort-value=.*<a\ href=.*title="(.*)"/ ) {
+		my $line1 = $1;
+		if ( $line1 =~ m/^([a-zA-z0-9\ ,-]{1,})/ ) {
+			print "$1\n";
+		}
+	}
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 316 - 0
seed_data.txt


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.