[~] Refactor
This commit is contained in:
parent
f4c5537eb1
commit
1bc7838511
@ -12,11 +12,13 @@ def kernel_1_sample_scrap():
|
|||||||
t3 = t2('.comment__content')
|
t3 = t2('.comment__content')
|
||||||
t6 = []
|
t6 = []
|
||||||
for o in t3:
|
for o in t3:
|
||||||
t4 = pyquery.PyQUery(o)
|
t4 = pyquery.PyQuery(o)
|
||||||
t5 = t4('.comment__header > a').attr['href']
|
t5 = t4('.comment__header > a').attr['href']
|
||||||
t6.append(
|
t6.append(
|
||||||
|
dict(
|
||||||
author=t5,
|
author=t5,
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
pprint.pprint(t3)
|
pprint.pprint(t3)
|
||||||
pprint.pprint(t6)
|
pprint.pprint(t6)
|
||||||
|
Loading…
Reference in New Issue
Block a user