From 172fb04699e5c215dba81c8cf1783b8736c652e2 Mon Sep 17 00:00:00 2001 From: 13451294168 <2211316490@qq.com> Date: Tue, 18 Jun 2024 22:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E7=BB=88=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Poetry/.idea/.name | 2 +- .../__pycache__/runspiders.cpython-310.pyc | Bin 1249 -> 1280 bytes .../poetrySpider/spiders/runspiders.py | 5 ++- poem/css/index.css | 4 +-- poem/index.html | 30 +++++++++++------- 5 files changed, 25 insertions(+), 16 deletions(-) diff --git a/Poetry/.idea/.name b/Poetry/.idea/.name index 93f5256..db184f4 100644 --- a/Poetry/.idea/.name +++ b/Poetry/.idea/.name @@ -1 +1 @@ -__init__.py \ No newline at end of file +runspiders.py \ No newline at end of file diff --git a/Poetry/Spiders/poetrySpider/poetrySpider/spiders/__pycache__/runspiders.cpython-310.pyc b/Poetry/Spiders/poetrySpider/poetrySpider/spiders/__pycache__/runspiders.cpython-310.pyc index cda065e345779feddf9da187ab7bc112c3218526..99baa987706e4ed9106dc8aaf7b4b4de09b67db7 100644 GIT binary patch delta 181 zcmaFJ*}%n{&&$ij00exq3)2cW^71h;T1=K^uaev37^D6u@J2&DHGuVZORMt)Ioa6x8DYSH80H$-PXWTp(Gd20kV} z#>uakQn>|y+#*2`Av`&XS&dP8awGFCQ4x@UG?2K(5g(tIn420OUnDuXfJIRNtR6uK JPhQC4007~PDE0sV delta 150 zcmZqRddSI}&&$ij00bXy7o_EGx)S4{Aq$pd$vVe6V10zEULokCTqn{?*E!O0s z#PXaXkm||hOh%0SlUFf?a&Q2-ObvX@lR24Fx%q*dA^{K~G`W&ljZtdy0_Izy!XN=D gAaRQ$K0YroH#I)KNMdq7i=qHnJ%SLLe1OFP0N0ivWdHyG diff --git a/Poetry/Spiders/poetrySpider/poetrySpider/spiders/runspiders.py b/Poetry/Spiders/poetrySpider/poetrySpider/spiders/runspiders.py index 134fdc5..aa081c4 100644 --- a/Poetry/Spiders/poetrySpider/poetrySpider/spiders/runspiders.py +++ b/Poetry/Spiders/poetrySpider/poetrySpider/spiders/runspiders.py @@ -24,7 +24,7 @@ def f(q): @defer.inlineCallbacks def crawl(): - # yield runner.crawl(poetry.AuthorsSpider) + yield runner.crawl(poetry.AuthorsSpider) yield runner.crawl(poetry.FormatSpider) yield runner.crawl(poetry.TypeSpider) reactor.stop() @@ -45,3 +45,6 @@ if __name__ == '__main__': if result is not None: raise result + + + diff --git a/poem/css/index.css b/poem/css/index.css index 0b518f4..3ac905b 100644 --- a/poem/css/index.css +++ b/poem/css/index.css @@ -334,9 +334,9 @@ float: left; color: #000000; font-size: 100px; - margin-left: 16%; + margin-left: 13%; line-height: 4.5vw; - width: 18%; + width: 20%; margin-top: .5vw; } diff --git a/poem/index.html b/poem/index.html index 2cb6d21..d4045fe 100644 --- a/poem/index.html +++ b/poem/index.html @@ -5,7 +5,7 @@ - 中国诗人数据展示 + 中国古文人数据展示 @@ -19,7 +19,7 @@
-
诗人-朝代
+
文人-朝代
0 @@ -57,16 +57,16 @@
-
各朝代诗人数量
+
各朝代文人数量
- 中国诗人数据展示 + 中国文人数据展示
-
诗词总量:
+
诗词曲文总量:
@@ -93,7 +93,7 @@
-
诗词风格
+
文章风格
@@ -109,7 +109,7 @@
-
诗人-朝代
+
文人-朝代
0 @@ -145,7 +145,7 @@
-
经典诗句
+
经典名句
    @@ -198,7 +198,7 @@
    诗人的风格占比
    测试
    @@ -610,10 +610,11 @@ label: { normal: { position: 'inner', - show: false + show: false, + // 修改nabel里面的大小 } }, - name: "XX公开数量", + name: "文章类型", data: data, }, // 边框的设置 @@ -623,7 +624,7 @@ type: 'pie', label: { normal: { - show: false + show: false, }, emphasis: { show: false @@ -646,6 +647,11 @@ itemStyle: { color: "rgba(250,250,250,0.3)", }, + normal:{ + textStyle:{ + fontSize :1000, + } + } }], } ]