excel vba 网页数据抓取(我有一些设计非常糟糕的换行从中抓取数据以使其易于阅读)

优采云 发布时间: 2021-09-23 08:06

  excel vba 网页数据抓取(我有一些设计非常糟糕的换行从中抓取数据以使其易于阅读)

  我有一些非常糟糕的HTML,我试图捕获中间的数据以阅读它。

  我可以使用innerhtml获取信息,但不幸的是它以文本墙的形式出现。

  当我“查看源代码”(更改隐私字)时,网页的源代码示例是:

  Logger Notes

Hi,

Person needs a full breakdown Important information.

Would also would like confirmation in a letter about what kinds of assistance

she is not eligible for if possible.

Would prefer sent to email.

Thanks 

  但是,当我获取数据时,它将以文本墙的形式出现,如下所示:

  Hi, Person needs a full breakdown Important information. Would also would like confirmation in a letter about what kinds of assistance she is not eligible for if possible. Would prefer sent to email. Thanks

  这显然更难以阅读。

  当我使用innerhtml并查看字符串时,所有换行符实际上都是空格字符,因此我不能使用替换。

  我已经搜索并尝试了许多不同的东西,但我找不到展示它阅读的方法。

  此页面位于我们的工作内部网上,并具有登录信息(许多使用电子表格的人 - 所以我无法自动化)

  首选输出示例:

  Hi,

Person needs a full breakdown Important information.

Would also would like confirmation in a letter about what kinds of assistance she is not eligible for if possible.

Would prefer sent to email.

  任何意见都不会感激。

0 个评论

要回复文章请先登录注册


官方客服QQ群

微信人工客服

QQ人工客服


线