From eafe4de6b9fb0980d85279ce660de9decef228d4 Mon Sep 17 00:00:00 2001 From: hillerliao Date: Tue, 14 Sep 2021 12:15:20 +0800 Subject: [PATCH] get ielts word --- rsshub/spiders/word/word.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsshub/spiders/word/word.py b/rsshub/spiders/word/word.py index af7bc70..bd1c72c 100644 --- a/rsshub/spiders/word/word.py +++ b/rsshub/spiders/word/word.py @@ -6,10 +6,10 @@ from os import path file_path = path.dirname(path.realpath(__file__)) def ctx(): - file = path.join(file_path,'toeflwords.txt') + file = path.join(file_path,'ieltswords.txt') with open(file, encoding='utf-8') as inf: f = inf.readlines() count = len(f) wordnum = random.randrange(0, count, 1) word = linecache.getline(file, wordnum) - return {"word": word} \ No newline at end of file + return {"word": word}