Beispiel #1
0
def capture_main_data():
    print(sys.path)
    sp = QQZoneSpider(use_redis=True, debug=True, download_small_image=False, download_big_image=False)
    sp.login_with_qr_code()
    sp.get_main_page_info()
    sp.get_mood_list()
    sp.user_info.save_user(sp.username)
Beispiel #2
0
def capture_main_data():
    sp = QQZoneSpider(use_redis=True,
                      debug=False,
                      download_small_image=False,
                      download_big_image=False)
    sp.login()
    sp.get_main_page_info()
    sp.get_mood_list()
    sp.user_info.save_user(sp.username)
Beispiel #3
0
def capture_data():
    sp = QQZoneSpider(use_redis=True,
                      debug=True,
                      mood_begin=0,
                      mood_num=-1,
                      stop_time='-1',
                      download_small_image=False,
                      download_big_image=False,
                      download_mood_detail=True,
                      download_like_detail=True,
                      download_like_names=True,
                      recover=False,
                      cookie_text=None)
    sp.login()
    sp.get_main_page_info()
    sp.get_mood_list()
    sp.user_info.save_user(sp.username)
Beispiel #4
0
 def test_get_main_page(self):
     sp = QQZoneSpider(use_redis=False, debug=True)
     sp.login()
     sp.get_main_page_info()
Beispiel #5
0
 def test_login_with_qr_code(self):
     sp = QQZoneSpider(use_redis=True, debug=True, mood_num=200)
     sp.login_with_qr_code()
     print("Login success")
     sp.get_main_page_info()
     sp.get_mood_list()