We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d67e8d commit a250c23Copy full SHA for a250c23
main.py
@@ -1,7 +1,7 @@
1
import asyncio
2
import base64
3
import logging
4
-import os
+import os, glob
5
from dotenv import load_dotenv
6
import hashlib
7
import sys
@@ -101,7 +101,10 @@ async def main():
101
logger.info("Starting Taiga ind/pictures crawler...")
102
print(f"Imports: {args.imports}")
103
await a_moins_b(url, 0, -1, headers)
104
-
+ # suppression des fichiers cache
105
+ listjson=glob.glob('./cache/*.json')
106
+ for file in listjson:
107
+ os.remove(file)
108
109
if args.imports == 'ind':
110
collection_tasks = [col.get('function')(url, col, headers) for col in collections if col.get('method') != 'ExportPhotos']
0 commit comments