mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 04:44:26 +00:00
🚸 Пропуск оригиналов файлов при создании БД
Создал .env.example для скрипта генерирующего Бд
This commit is contained in:
2
archive/.env.example
Normal file
2
archive/.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
HOST_NAME=Имя хозяина архива
|
||||
HOST_URL=Ссылка на хозяина архива
|
||||
@@ -11,7 +11,7 @@ client = MongoClient(host="localhost", port=27017)
|
||||
db = client.vk_bingo
|
||||
|
||||
for filename in os.listdir(DIRECTORY):
|
||||
if filename.endswith(".html"):
|
||||
if filename.startswith("UTF8") and filename.endswith(".html"):
|
||||
soup = BeautifulSoup(open(DIRECTORY+filename), "html.parser")
|
||||
|
||||
for attch_desc in soup.find_all('div', attrs={'class': 'attachment__description'}):
|
||||
|
||||
Reference in New Issue
Block a user