@
kslr @
Septembers 代码如下
./
tbfinder.pyparse.multiProcess ('侠盗小飞机')
./parse/
parse.pydef multiProcess (tbname ):
database.getTiebaContent (tbname )
./parse/
database.pydef getTiebaContent (tbname )
url = '
http://tieba.baidu.com/f/search/ures?ie=utf-8&kw=&qw=&rn=10&un=' + urllib.quote (
tbname ) + '&only_thread=&sm=1&sd=&ed=&pn=1'
url2 = '
http://tieba.baidu.com/f/search/ures?ie=utf-8&kw=&qw=&rn=10&un=' + urllib.quote (
tbname ) + '&only_thread=&sm=1&sd=&ed=&pn=2'
respone = requests.get (url )
respone1 = requests.get (url2 )
# title = re.findall (r'class="bluelink" target="_blank" >(.*?)</a>',respone.text )
print respone.text
print respone1.text