#!/usr/bin/env python
# coding:utf-8



@@ -31,9 +31,1360 @@
 :utf-8%0A%0A
+import requests%0Afrom bs4 import Beautifulsoup%0Afrom ShowQRcode import ShowQRcode%0A%0Aclass Login:%0A    %22%22%22%0A    Login SmartQQ%0A    %22%22%22%0A    def __init__(self):%0A        self.headers = %7B%0A            %22Accept-Encoding%22: %22gzip, deflate, sdch, br%22,%0A            %22Accept-Language%22: %22zh-CN,zh;q=0.8%22,%0A            %22Cache-Control%22: %22max-age=0%22,%0A            %22Connection%22: %22keep-alive%22,%0A            %22Host%22: %22ui.ptlogin2.qq.com%22,%0A            %22Referer%22: %22http://w.qq.com/%22,%0A            %22Upgrade-Insecure-Requests%22: %221%22,%0A            %22User-Agent%22: (%0A                %22Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 %22%0A                %22(KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36%22%0A            )%0A        %7D%0A        self.session = requests.Session()%0A        # TODO: %E6%9A%82%E4%B8%8D%E6%89%93%E7%AE%97%E4%BF%9D%E5%AD%98 Cookies,%E8%BE%BE%E5%88%B0%E5%85%8D%E6%89%AB%E7%A0%81%E7%99%BB%E5%BD%95%E6%95%88%E6%9E%9C%EF%BC%8C%E4%B9%8B%E5%90%8E%E5%86%8D%E6%B7%BB%E5%8A%A0.%0A%0A    def http_requests(self, method, url, form_data=None, timeout=60):%0A        if method == %22GET%22:%0A            reponse = self.session.get(url,%0A                                       headers=self.headers,%0A                                       timeout=timeout)%0A        elif method == %22POST%22:%0A            reponse = self.session.post(url,%0A                                        headers=self.headers,%0A                                        form_data=form_data,%0A                                        timeout=timeout)%0A        else:%0A%0A%0A%0A%0A    def get_QRcode(self):%0A        k
 %0A

update login class