From f4c5537eb1889bc723762a0371c3109b19653661 Mon Sep 17 00:00:00 2001
From: Siarhei Siniak <siarheisiniak@yahoo.com>
Date: Thu, 15 Jul 2021 08:08:03 +0300
Subject: [PATCH] [~] Refactor

---
 python/tasks/jigsaw_toxic.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/python/tasks/jigsaw_toxic.py b/python/tasks/jigsaw_toxic.py
index 6aea61c..01e361c 100644
--- a/python/tasks/jigsaw_toxic.py
+++ b/python/tasks/jigsaw_toxic.py
@@ -9,11 +9,21 @@ def kernel_1_sample_scrap():
     ) as p:
         t1 = p.content.decode('utf-8')
     t2 = pyquery.PyQuery(t1)
-    t3 = t2('.comment_content')
+    t3 = t2('.comment__content')
+    t6 = []
+    for o in t3:
+        t4 = pyquery.PyQUery(o)
+        t5 = t4('.comment__header > a').attr['href']
+        t6.append(
+            author=t5,
+        )
+
     pprint.pprint(t3)
+    pprint.pprint(t6)
 
     return dict(
         t1=t1,
         t2=t2,
         t3=t3,
+        t6=t6,
     )