Ejemplo n.º 1
0
def write(session, who):
    page, who = Lwb.getPage(session, 'http://weibo.com/' + who)
    WB_text, WB_time, WB_comefrom, WB_like, WB_pinlun, WB_forward, WB_mid = jiexi.detail(page)
    for i in range(0, len(WB_text)):
        file.inputweibo(who, WB_text[i], WB_time[i], WB_mid[i],
                WB_comefrom[i], WB_like[i], WB_forward[i], WB_pinlun[i])
    print 'Success!'
Ejemplo n.º 2
0
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) 2013
# Gmail:liuzheng712
#

import loginweibo as Lwb
import jiexi
import file
import re
import persion

if len(persion.usename) == 0:
    username, passwd = Lwb.Login()
else:
    username = persion.usename
    passwd = persion.passwd
session = Lwb.getCookies(username, passwd)
page, who = Lwb.PageOne(session)
WB_text, WB_time, WB_comefrom, WB_like, WB_pinlun, WB_forward, WB_mid = jiexi.detail(page)
#jiexi.showweibo(WB_text, WB_time, WB_comefrom, WB_like, WB_pinlun, WB_forward,
#        WB_mid)
for i in range(0, len(WB_text)):
    file.inputweibo(who, WB_text[i].lstrip('\\n').split(), WB_time[i], WB_mid[i], WB_comefrom[i], WB_like[i], WB_forward[i], WB_pinlun[i])

Lwb.waitlist(session)

#ff = open(file.Wpath + '/waitlist', 'r')
#print ff.read()
Ejemplo n.º 3
0
# Copyright (c) 2013
# Gmail:liuzheng712
#

import loginweibo as Lwb
import jiexi
import file
import re
import persion

if len(persion.usename) == 0:
    username, passwd = Lwb.Login()
else:
    username = persion.usename
    passwd = persion.passwd
session = Lwb.getCookies(username, passwd)
page, who = Lwb.PageOne(session)
WB_text, WB_time, WB_comefrom, WB_like, WB_pinlun, WB_forward, WB_mid = jiexi.detail(
    page)
#jiexi.showweibo(WB_text, WB_time, WB_comefrom, WB_like, WB_pinlun, WB_forward,
#        WB_mid)
for i in range(0, len(WB_text)):
    file.inputweibo(who, WB_text[i].lstrip('\\n').split(), WB_time[i],
                    WB_mid[i], WB_comefrom[i], WB_like[i], WB_forward[i],
                    WB_pinlun[i])

Lwb.waitlist(session)

#ff = open(file.Wpath + '/waitlist', 'r')
#print ff.read()