def dispres(url):
"""
Display result page
:param url: URL of the search result
:return:
"""
global question_post
global header_for_display
global LOOP
randomheaders()
res_page = requests.get(url, headers=header)
captchacheck(res_page.url)
header_for_display = Header()
question_title, question_desc, question_stats, answers = get_question_stats_and_answer(url)
question_post = QuestionPage((answers, question_title, question_desc, question_stats, url))
LOOP = EditedMainLoop(question_post, palette)
LOOP.run()
评论列表
文章目录