mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-08-30 08:26:57 +08:00
Compare commits
3 Commits
33c77aef27
...
e2324cd096
Author | SHA1 | Date | |
---|---|---|---|
|
e2324cd096 | ||
|
8ce12d151f | ||
|
218e283238 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.venv/
|
||||
.idea/
|
||||
**/target/
|
||||
**/target/
|
||||
.python-version
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user