Skip to content

ДЗ 19. Парсинг логов вебсервера. Скрипт/описание/примеры - #15

Open
SmileRexar wants to merge 1 commit into
masterfrom
HW19
Open

ДЗ 19. Парсинг логов вебсервера. Скрипт/описание/примеры#15
SmileRexar wants to merge 1 commit into
masterfrom
HW19

Conversation

@SmileRexar

Copy link
Copy Markdown
Owner

Задание по курсу.
Парсинг логов вебсервера

Comment thread HW19/access1.log
@@ -0,0 +1,12 @@
109.169.248.247 - - [12/Dec/2015:18:25:11 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" 7269

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сам лог не нужен был

Comment thread HW19/log_parser.py
# количество запросов по типу: GET - 20, POST - 10 и т.п.
print('Выполнение. количество запросов по типу: GET - 20, POST - 10 и т.п')
if debug:
print(common_method)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Принты не нужно оставлять в коде с флагом if debug, это можно было реализовать через модуль logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants