mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-09-02 01:47:20 +08:00
Compare commits
No commits in common. "e2324cd0960809cdfde827f475e294a073b67fa9" and "33c77aef2782a4b95c23ca20fef3b432ec8c09a4" have entirely different histories.
e2324cd096
...
33c77aef27
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
.venv/
|
||||
.idea/
|
||||
**/target/
|
||||
.python-version
|
||||
**/target/
|
@ -61,12 +61,12 @@ class Downloader:
|
||||
today = arrow.utcnow()
|
||||
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))
|
||||
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))
|
||||
asyncio.run(self.write())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Downloader().run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user