from m_queue import TaskQueue
from lxml import etree

tt = TaskQueue()
from req import Sin_Req
url = "https://sz.lianjia.com/ershoufang/pg2/"
def A(response):
    html = etree.HTML(response["response"])
    title = html.xpath('//title/text()')
    print(title)
rr = Sin_Req(url=url,callback=A)
import pickle
tt.add_task(rr)
a = tt.pop_task()
a.get()

