获取谷歌Chrome开发工具等元素。 [英] Getting elements like google chrome Dev Tools.

查看:112
本文介绍了获取谷歌Chrome开发工具等元素。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我一直在苦苦挣扎,决定在这里创建一个帐户来提问。首先嗨:)很高兴见到你们。

I've been struggling for a while and decided to create an account here to ask a question. First of all Hi :) Nice to meet you all.

如果你想的话,我正在寻找的实际上非常简单,但它比我想象的要难。我想从一个(我使用Httpwebrequest,但一切都是受欢迎的)检索某些数据。每当我这样做,我都无法得到我想要的数据。让我们以
这个页面为例:

What I'm looking for is actually quite simple if you think about it, however it's harder than I expected. I want to retrieve a certain data from a (I'm using Httpwebrequest, but everything is welcome). Whenever I do so I don't get the data I want. Lets take this page as an example :

(不能使用超链接)

aliexpress.com/item/2015-礼品10英寸-AllWinner-A33-四核平板电脑-Android-4-4-OS-wifi-蓝牙/ 32325020654.html

aliexpress.com/item/2015-Gift-10-inch-AllWinner-A33-Quad-Core-Tablet-PC-Android-4-4-OS-wifi-Bluetooth/32325020654.html

每当你做CTRL + U (查看页面来源)在搜索"产品描述"时,您会看到这一点。

Whenever you do CTRL + U (view page source) You'll see this when searching for "Product description".

 <div class="ui-box product-description-main" id="j-product-description">
        <div class="ui-box-title">Product Description</div>
        <div class="ui-box-body">

            <div class="description-content" data-role="description" data-spm="1000023">
            <div class="loading32"></div>
            </div>

        </div>
    </div>

正如您所看到的那样< div class =" loading32">。如果向下滚动,应该加载哪个。然而,即使你向下滚动并查找页面源代码,你仍然会在那里看到loading32。

As you can see there's <div class="loading32">. Which is supposed to be loaded if you scroll down. However even if you do scroll down and look up the page source you'll still see loading32 in there.

使用google chrome dev工具,你会看到正确的HTML代码。说明中的文字说明"重要通知":

Using google chrome dev tools you'll see the proper HTML codes. Text inside the description saying "IMPORTANT NOTICE":

<span style="margin: 0.0px;padding: 0.0px;border: 0.0px;font-style: inherit;font-weight: inherit;font-size: inherit;line-height: inherit;vertical-align: baseline;background-color: #ffff00;">IMPORTANT NOTICE:</span>

它可以与devtools一起使用,但不能与httpwebrequest一起使用,或者在页面加载后检索webbrowser1.documenttext。我一直在谷歌搜索一段时间,我打赌以前曾经问过这个问题,但我似乎无法找到它。

It does work with the devtools but not with httpwebrequest and or by retrieving webbrowser1.documenttext after the page has been loaded. I've been googling for a while I bet this has been asked before but I really can't seem to find it.

非常感谢任何帮助:)

此致,

Samo。

推荐答案

您好_Samo,

Hi _Samo,

感谢您在此发帖。

根据您的说法问题与  Google Chrome开发人员工具更相关,您可以在  Google
Chrome开发者工具论坛
以获得合适的支持。

According to your question is more related to Google Chrome Developer Tools, you could post a new thread in Google Chrome Developer Tools forum for suitable support.

Visual C#讨论并询问C#编程语言,IDE,库,示例和工具。

如果你有一些gra mmar或代码错误,请随时与我们联系。我们会尽力为您提供解决方案。

感谢您的支持理解与合作。

最好的问候,

Wendy


这篇关于获取谷歌Chrome开发工具等元素。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆