racal's recent timeline updates
racal

racal

V2EX member #134516, joined on 2015-08-23 10:45:41 +08:00
racal's recent replies
Sep 6, 2015
Replied to a topic by zix Python 百度 OCR API Python
@zix 那正好,有不懂的可以向你请教了 XD
Sep 6, 2015
Replied to a topic by zix Python 百度 OCR API Python
@zix 所有 ann model 都会撸一遍,我主要想减少依赖项目所以没有用 numpy,不过日后考虑性能可能会用 numpy
Sep 6, 2015
Replied to a topic by zix Python 百度 OCR API Python
等我把 pyann ( https://github.com/racaljk/pyann )撸好了也来试试 ocr
用正则轻松解决
Aug 24, 2015
Replied to a topic by racal Python python get 中一个奇怪的的 bug
@xingzhi 单步调试时已经打印出 irl 并确定两个不同了 但怪就怪在即使如此 get 后还是返回了一样的页面
Aug 24, 2015
Replied to a topic by unique 程序员 上海电信表示 github 上不去
crome 吧看见的
Aug 23, 2015
Replied to a topic by racal Python python get 中一个奇怪的的 bug
@Damnever 原代码当然不是这样 这只是单步调试的最简化模型 ,但即使如此返回的结果也是相同
Aug 23, 2015
Replied to a topic by racal Python python get 中一个奇怪的的 bug
@kslr
@Septembers

代码如下
./tbfinder.py
parse.multiProcess ('侠盗小飞机')

./parse/parse.py
def multiProcess (tbname ):
database.getTiebaContent (tbname )
./parse/database.py

def 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
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3620 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 00:46 · PVG 08:46 · LAX 17:46 · JFK 20:46
♥ Do have faith in what you're doing.