久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='qAGUi'></tfoot>

      1. <i id='qAGUi'><tr id='qAGUi'><dt id='qAGUi'><q id='qAGUi'><span id='qAGUi'><b id='qAGUi'><form id='qAGUi'><ins id='qAGUi'></ins><ul id='qAGUi'></ul><sub id='qAGUi'></sub></form><legend id='qAGUi'></legend><bdo id='qAGUi'><pre id='qAGUi'><center id='qAGUi'></center></pre></bdo></b><th id='qAGUi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qAGUi'><tfoot id='qAGUi'></tfoot><dl id='qAGUi'><fieldset id='qAGUi'></fieldset></dl></div>
        <legend id='qAGUi'><style id='qAGUi'><dir id='qAGUi'><q id='qAGUi'></q></dir></style></legend>

          <bdo id='qAGUi'></bdo><ul id='qAGUi'></ul>
      2. <small id='qAGUi'></small><noframes id='qAGUi'>

        Google Chrome 擴展中的網頁抓取(JavaScript + Chrome AP

        Web Scraping in a Google Chrome Extension (JavaScript + Chrome APIs)(Google Chrome 擴展中的網頁抓取(JavaScript + Chrome API))

              <bdo id='7M2r1'></bdo><ul id='7M2r1'></ul>
              <tfoot id='7M2r1'></tfoot>

                  <tbody id='7M2r1'></tbody>

                  <small id='7M2r1'></small><noframes id='7M2r1'>

                  <i id='7M2r1'><tr id='7M2r1'><dt id='7M2r1'><q id='7M2r1'><span id='7M2r1'><b id='7M2r1'><form id='7M2r1'><ins id='7M2r1'></ins><ul id='7M2r1'></ul><sub id='7M2r1'></sub></form><legend id='7M2r1'></legend><bdo id='7M2r1'><pre id='7M2r1'><center id='7M2r1'></center></pre></bdo></b><th id='7M2r1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7M2r1'><tfoot id='7M2r1'></tfoot><dl id='7M2r1'><fieldset id='7M2r1'></fieldset></dl></div>
                  <legend id='7M2r1'><style id='7M2r1'><dir id='7M2r1'><q id='7M2r1'></q></dir></style></legend>
                • 本文介紹了Google Chrome 擴展中的網頁抓取(JavaScript + Chrome API)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  使用 JavaScript 和任何其他可用技術執行 從 Google Chrome 擴展程序中對當前未打開的標簽頁進行網頁抓取 的最佳選項是什么?也接受其他 JavaScript 庫.

                  What are the best options for performing Web Scraping of a not currently open tab from within a Google Chrome Extension with JavaScript and whatever more technologies are available. Other JavaScript-libraries are also accepted.

                  重要的是掩蓋抓取行為,使其表現得像正常的網絡請求.沒有 AJAX 或 XMLHttpRequest 的跡象,例如 X-Requested-With: XMLHttpRequestOrigin.

                  The important thing is to mask the scraping to behave like a normal web-request. No indications of AJAX or XMLHttpRequest, like X-Requested-With: XMLHttpRequest or Origin.

                  必須可以從 JavaScript 訪問抓取的內容,以便在擴展程序中進行進一步操作和呈現,最有可能作為字符串.

                  The scraped content must be accessible from JavaScript for further manipulation and presentation within the extension, most probably as a string.

                  在任何 WebKit/Chrome 特定的 API 中是否有任何鉤子可用于發出正常的網絡請求并獲取操作結果?

                  Are there any hooks in any WebKit/Chrome-specific API:s that can be used to make a normal web-request and get the results for manipulation?

                  var pageContent = getPageContent(url); // TODO: Implement
                  var items = $(pageContent).find('.item');
                  // Display items with further selections
                  

                  使用磁盤上的本地文件進行這項工作的獎勵積分,用于初始調試.但如果這是唯一的一點就是停止解決方案,那么請忽略獎勵積分.

                  Bonus-points to make this work from a local file on disk, for initial debugging. But if that is the only point is stopping a solution, then disregard the bonus-points.

                  推薦答案

                  嘗試使用 XHR2 responseType = "document" 并使用 (new DOMParser).parseFromString(responseText, getResponseHeader("Content-Type"))a rel="noreferrer">我的 text/html 補丁.有關我如何檢測 responseType 的示例,請參閱 https://gist.github.com/1138724= "document 支持(在從 text/html blob 創建的對象 URL 上同步檢查 response === null).

                  Attempt to use XHR2 responseType = "document" and fall back on (new DOMParser).parseFromString(responseText, getResponseHeader("Content-Type")) with my text/html patch. See https://gist.github.com/1138724 for an example of how I detect responseType = "document support (synchronously checking response === null on an object URL created from a text/html blob).

                  使用 Chrome WebRequest API 隱藏 X-Requested-With 等標題.

                  Use the Chrome WebRequest API to hide X-Requested-With, etc. headers.

                  這篇關于Google Chrome 擴展中的網頁抓取(JavaScript + Chrome API)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                • <small id='ed80E'></small><noframes id='ed80E'>

                    <tbody id='ed80E'></tbody>
                  <i id='ed80E'><tr id='ed80E'><dt id='ed80E'><q id='ed80E'><span id='ed80E'><b id='ed80E'><form id='ed80E'><ins id='ed80E'></ins><ul id='ed80E'></ul><sub id='ed80E'></sub></form><legend id='ed80E'></legend><bdo id='ed80E'><pre id='ed80E'><center id='ed80E'></center></pre></bdo></b><th id='ed80E'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ed80E'><tfoot id='ed80E'></tfoot><dl id='ed80E'><fieldset id='ed80E'></fieldset></dl></div>
                    <legend id='ed80E'><style id='ed80E'><dir id='ed80E'><q id='ed80E'></q></dir></style></legend>

                        <tfoot id='ed80E'></tfoot>
                            <bdo id='ed80E'></bdo><ul id='ed80E'></ul>
                            主站蜘蛛池模板: 中文字幕在线视频精品 | 国产精品久久二区 | 国产精品一区二区三区免费观看 | 成人免费在线观看 | 久久91| 欧美性视频在线播放 | 国产av毛片| 免费亚洲视频 | 久久久久国产一区二区三区 | 国产人免费人成免费视频 | 国产精品久久久久久238 | 亚洲视频区 | aaaa日韩| 亚洲精品一区二区在线观看 | 欧美日韩国产中文 | 欧美国产91 | 精品一区二区在线观看 | 黄色大片在线免费观看 | 男女网站视频 | 国产一区二区在线免费播放 | 国产色婷婷精品综合在线手机播放 | 中文字幕视频在线观看 | 91黄色片免费看 | 国产小视频在线观看 | 国产91精品网站 | 国产欧美精品一区二区色综合 | 成人免费在线视频 | 亚洲视频一区在线观看 | 日韩中文在线 | 91视频大全 | 黄色大片视频 | 成人免费区一区二区三区 | 日韩电影一区 | 人人干天天干 | 国产午夜视频 | 国产一区二区三区四区三区四 | 久久久涩 | 久久久久久国产精品三区 | 日韩精品一区二区三区在线播放 | 99中文字幕 | 成人精品免费视频 |