鱼C论坛

 找回密码
 立即注册
查看: 2911|回复: 4

爬网页过程中发现网页内容在源代码中不显示

[复制链接]
发表于 2016-1-17 15:43:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
http://www.we.com/lend/detailPage.action?loanId=800216
如图所示,我需要抓取审核状态这个表中的各项审核是否完成,但在requests得到的html文件里并没有相应的内容。我用审查元素的方法找到了另外两个,但这个表中的内容依然找不到。
跪求高手指点。

审核状态

审核状态
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2016-1-18 00:16:16 | 显示全部楼层
帖子要沉了。。。再顶下。。。求高手解答。。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

头像被屏蔽
发表于 2016-1-20 08:27:35 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2016-1-21 21:42:59 | 显示全部楼层

谢了呢,问题还是没解决
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 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'}}}
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-2-19 07:47

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表