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
@inline
def task_reg(self, grab, old_task):
url = 'https://google.ru'
grab.setup(url=url)
st = yield Task(grab=grab)
print st
url = 'https://yandex.ru'
grab.setup(url=url)
st = yield Task(grab=grab)
print st