|
|

楼主 |
发表于 2016-1-24 18:23:15
|
显示全部楼层
自问自答。。。今天在练习用xpath匹配文本,意外的在源码里找到了想要的信息的英文形式json代码。。。赶紧全抓了下来,不过还是不明白网页里是如何显示中文信息的。 哈哈,总之 json是个好东西~比正则表达式方便多了~下面附上找到的信息的范例。 
{'status': 0, 'data': {'creditPassedTime': {'work': 'Jan 14, 2015 1:45:15 PM', 'creditPassedTimeId': 8147, 'marriage': 'Feb 11, 2011 11:02:33 AM', 'house': 'Feb 15, 2011 1:31:59 PM', 'credit': 'Mar 9, 2015 10:55:46 AM', 'graduation': 'Feb 11, 2011 11:53:02 AM', 'titles': 'Feb 11, 2011 12:25:28 PM', 'mobile': 'Sep 3, 2013 11:58:23 AM', 'incomeDuty': 'Mar 9, 2015 10:55:52 AM', 'user': 8167, 'residence': 'Jan 12, 2015 8:01:28 PM', 'identificationScanning': 'Feb 11, 2011 10:21:26 AM', 'lastUpdateTime': 'Mar 9, 2015 10:55:52 AM', 'kaixin': 'Feb 15, 2011 2:49:42 PM'}, 'loan': {'principal': 0.0, 'description': '本人为执业3年半的上海律师。现收入每月约为8000-10000(因律师很多是现金收入,不能体现在账单上)。本借款主要用于在家乡购房投资,本借款利率较低(相较于人家动辄20%确实低不少)时间也较长,但是B级的信用意味着低风险低收益。因为如果太高的利率我也有其他的借款渠道。上海律师圈子较窄,也不希望让所有人都知道我是谁啊,没有用本人头像,也没有显示我所执业的律所名称。请见谅!希望大家互相帮忙。我先发这个信息看看', 'borrowType': '购房借款', 'nickName': 'missilexp', 'amountPerShare': 50.0, 'repaidByGuarantor': False, 'surplusAmount': 15950.0, 'loanId': 2009, 'leftMonths': 36, 'status': 'FAILED', 'openTime': 'Feb 16, 2011 7:36:08 PM', 'borrowerId': 8167, 'borrowerLevel': 'AA', 'currentIsRepaid': False, 'avatar': '', 'allProtected': False, 'allowAccess': True, 'oldLoan': True, 'months': 36, 'title': '低收益低风险,目前唯一B级信用', 'productId': 4, 'loanType': 'DEBX', 'jobType': '工薪阶层', 'repayType': 'MONTH', 'amount': 20000.0, 'utmSource': 'from-website', 'interestPerShare': 0.0, 'address': '上海', 'finishedRatio': 20.25, 'monthlyMinInterest': '[{"month":"3","minInterest":"10","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"6","minInterest":"11","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"9","minInterest":"12","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"12","minInterest":"12","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"15","minInterest":"13","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"18","minInterest":"13","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"24","minInterest":"13","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0},{"month":"36","minInterest":"13","maxInterest":"24","mgmtFee":"0.3","tradeFee":"0","guaranteeFee":"2","inRepayPenalFee":"1","divideFee":0.0}]', 'forbidComment': False, 'productName': 'C', 'overDued': False, 'startTime': 'Feb 23, 2011 7:36:08 PM', 'picture': '../images/loanType/gf.png', 'interest': 8.0, 'displayLoanType': 'XYRZ'}, 'creditInfo': {'work': 'OVERDUE', 'credit': 'OVERDUE', 'marriage': 'VALID', 'creditInfoId': 8147, 'child': 'VALID', 'graduation': 'VALID', 'titles': 'VALID', 'mobile': 'VALID', 'other': 'INVALID', 'identification': 'VALID', 'user': 8167, 'album': 'INVALID', 'lastUpdateTime': 'Mar 9, 2015 10:55:52 AM', 'video': 'INVALID', 'house': 'VALID', 'version': 27, 'borrowStudy': 'VALID', 'mobileReceipt': 'FAILED', 'account': 'INVALID', 'incomeDuty': 'OVERDUE', 'detailInformation': 'VALID', 'fieldAudit': 'INVALID', 'mobileAuth': 'INVALID', 'residence': 'VALID', 'identificationScanning': 'VALID', 'car': 'FAILED', 'kaixin': 'VALID', 'renren': 'VALID'}}} |
|