本文整理汇总了Python中Analyzer.Analyzer.get_loan_detail方法的典型用法代码示例。如果您正苦于以下问题:Python Analyzer.get_loan_detail方法的具体用法?Python Analyzer.get_loan_detail怎么用?Python Analyzer.get_loan_detail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analyzer.Analyzer
的用法示例。
在下文中一共展示了Analyzer.get_loan_detail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: analyze_loan
# 需要导入模块: from Analyzer import Analyzer [as 别名]
# 或者: from Analyzer.Analyzer import get_loan_detail [as 别名]
def analyze_loan(url):
data, cache = Server.get(url, cache=False, use_cookie=True)
if data:
info = Analyzer.get_loan_detail(data)
if info and info['amount'] < 4000:
print url
# 判断借款成功次数>0
huanqing = info['tongji_info'].get('total_huanqing')
if huanqing and huanqing > 0:
# 已还完时间在2016/2之后
if info['lishi_borrowed'] \
and not info['has_buy'] \
and info['tiqian_days'] < -30 \
and len(info['tiqian_days_list']) > 2:
print u'买买买' + url
if len(info['tiqian_days_list']) > 3 and info['tiqian_days'] < -50:
res, msg = PaipaiDai.buy_loan(info['loan_id'], 50)
if not res:
print u'买买买失败:{0}'.format(msg)
else:
webbrowser.open_new_tab(url)
示例2: check_loan_qishu
# 需要导入模块: from Analyzer import Analyzer [as 别名]
# 或者: from Analyzer.Analyzer import get_loan_detail [as 别名]
def check_loan_qishu(url):
data, cache = Server.get(url, cache=False, use_cookie=True)
if data:
info = Analyzer.get_loan_detail(data)
if info:
qishu = info['qishu']