зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 21:16:25 +02:00
14 строки
260 B
Python
14 строки
260 B
Python
import os
|
|
|
|
from twscrape.accounts_pool import AccountsPool
|
|
from twscrape.db import DB
|
|
|
|
|
|
def get_pool(db_path: str):
|
|
DB._init_once[db_path] = False
|
|
if os.path.exists(db_path):
|
|
os.remove(db_path)
|
|
|
|
pool = AccountsPool(db_path)
|
|
return pool
|