Compare commits

...

3 Commits

Author SHA1 Message Date
踢低吸
e2324cd096 改進 NRD 下載效率 2024-04-13 13:40:44 +08:00
踢低吸
8ce12d151f 🙈 更新 gitignore 2024-04-13 13:40:32 +08:00
tdc
218e283238 🤖 自動更新 165 詐騙網址 2024-04-13 00:27:41 +00:00
3 changed files with 176 additions and 7 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
.venv/
.idea/
**/target/
**/target/
.python-version

View File

@ -61,12 +61,12 @@ class Downloader:
today = arrow.utcnow()
task = []
for i in range(1, 30):
date = today.shift(days=-i)
task.append(loop.create_task(self.fetch(date)))
loop.run_until_complete(asyncio.gather(*task))
for i in range(1, 30, 5):
for j in range(i, i + 5):
date = today.shift(days=-j)
task.append(loop.create_task(self.fetch(date)))
loop.run_until_complete(asyncio.gather(*task))
asyncio.run(self.write())
if __name__ == "__main__":
Downloader().run()

170
TW165.txt

File diff suppressed because it is too large Load Diff