pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <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="ysw06qw" 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="egcku8g" 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="esmm2c6" 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>
                            主站蜘蛛池模板: 电缆故障测试仪_电缆故障定位仪_探测仪_检测仪器_陕西意联电气厂家 | 道康宁消泡剂-瓦克-大川进口消泡剂供应商 | 真空上料机(一种真空输送机)-百科 | 实体店商新零售|微赢|波后|波后合作|微赢集团 | _网名词典_网名大全_qq网名_情侣网名_个性网名 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 深圳公司注册-工商注册代理-注册公司流程和费用_护航财税 | 制氮设备_PSA制氮机_激光切割制氮机_氮气机生产厂家-苏州西斯气体设备有限公司 | 飞歌臭氧发生器厂家_水处理臭氧发生器_十大臭氧消毒机品牌 | PTFE接头|聚四氟乙烯螺丝|阀门|薄膜|消解罐|聚四氟乙烯球-嘉兴市方圆氟塑制品有限公司 | 光栅尺厂家_数显表维修-苏州泽升精密机械 | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 焊接减速机箱体,减速机箱体加工-淄博博山泽坤机械厂 | 密集架-手摇-智能-移动-价格_内蒙古档案密集架生产厂家 | 原色会计-合肥注册公司_合肥代理记账公司_营业执照代办 | 废旧物资回收公司_广州废旧设备回收_报废设备物资回收-益美工厂设备回收公司 | 天一线缆邯郸有限公司_煤矿用电缆厂家_矿用光缆厂家_矿用控制电缆_矿用通信电缆-天一线缆邯郸有限公司 | 办公室家具公司_办公家具品牌厂家_森拉堡办公家具【官网】 | 石磨面粉机|石磨面粉机械|石磨面粉机组|石磨面粉成套设备-河南成立粮油机械有限公司 | 双段式高压鼓风机-雕刻机用真空泵-绍兴天晨机械有限公司 | 马尔表面粗糙度仪-MAHR-T500Hommel-Mitutoyo粗糙度仪-笃挚仪器 | 无锡网站建设-做网站-建网站-网页设计制作-阿凡达建站公司 | 河南道路标志牌_交通路标牌_交通标志牌厂家-郑州路畅交通 | 广东佛电电器有限公司|防雷开关|故障电弧断路器|智能量测断路器 广东西屋电气有限公司-广东西屋电气有限公司 | 上海办公室设计_办公楼,写字楼装修_办公室装修公司-匠御设计 | 东莞市海宝机械有限公司-不锈钢分选机-硅胶橡胶-生活垃圾-涡电流-静电-金属-矿石分选机 | 成都顶呱呱信息技术有限公司-贷款_个人贷款_银行贷款在线申请 - 成都贷款公司 | 大连海岛旅游网>>大连旅游,大连海岛游,旅游景点攻略,海岛旅游官网 | 盘煤仪,盘料仪,盘点仪,堆料测量仪,便携式激光盘煤仪-中科航宇(北京)自动化工程技术有限公司 | 换网器_自动换网器_液压换网器--郑州海科熔体泵有限公司 | 合肥升降机-合肥升降货梯-安徽升降平台「厂家直销」-安徽鼎升自动化科技有限公司 | 盘扣式脚手架-附着式升降脚手架-移动脚手架,专ye承包服务商 - 苏州安踏脚手架工程有限公司 | 沟盖板_复合沟盖板厂_电力盖板_树脂雨水篦子-淄博拜斯特 | 合肥礼品公司-合肥礼品定制-商务礼品定制公司-安徽柏榽商贸有限公司 | 日本东丽膜_反渗透膜_RO膜价格_超滤膜_纳滤膜-北京东丽阳光官网 日本细胞免疫疗法_肿瘤免疫治疗_NK细胞疗法 - 免疫密码 | nalgene洗瓶,nalgene量筒,nalgene窄口瓶,nalgene放水口大瓶,浙江省nalgene代理-杭州雷琪实验器材有限公司 | 南京欧陆电气股份有限公司-风力发电机官网| 兰州牛肉面加盟,兰州牛肉拉面加盟-京穆兰牛肉面 | 北钻固控设备|石油钻采设备-石油固控设备厂家| 玄米影院| 股指期货-期货开户-交易手续费佣金加1分-保证金低-期货公司排名靠前-万利信息开户 |