inline def task_reg self grab old_task url https google ru grab setup

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
@inline
def task_reg(self, grab, old_task):
url = 'https://google.ru'
grab.setup(url=url)
tsk = Task(grab=grab)
grab = yield self.add_inline_task(old_task, tsk)
url = 'https://yandex.ru'
grab.setup(url=url)
tsk = Task(grab=grab)
grab = yield self.add_inline_task(old_task, tsk)
print grab.response.body