Ruby 瓦蒂尔在firefox中检查json;“网络”;制表符解析

Ruby 瓦蒂尔在firefox中检查json;“网络”;制表符解析,ruby,json,parsing,firefox,watir,Ruby,Json,Parsing,Firefox,Watir,我不能100%确定我问的问题是否正确。 我去的一个网站使用了一个JSON字符串,我需要访问它。通过单击F12并选择“网络”选项卡,我可以在Firefox的“网络选项卡”中看到JSON字符串的位置 所以我想我可以通过进入临时的互联网文件来访问这个文件,但是没有骰子。 我还以为瓦蒂尔可以通过自己访问互联网上的临时文件,但我能找到的只有这个 require 'watir-webdriver' $browser = Watir::Browser.new $browser.methods => [

我不能100%确定我问的问题是否正确。 我去的一个网站使用了一个JSON字符串,我需要访问它。通过单击F12并选择“网络”选项卡,我可以在Firefox的“网络选项卡”中看到JSON字符串的位置

所以我想我可以通过进入临时的互联网文件来访问这个文件,但是没有骰子。 我还以为瓦蒂尔可以通过自己访问互联网上的临时文件,但我能找到的只有这个

require 'watir-webdriver'

$browser = Watir::Browser.new
$browser.methods
=> [:driver, :wd, :inspect, :goto, :back, :forward, :url, :title, :close, :quit, :cookies, :name, :text, :html, :alert, :refresh, :wait, :ready_state, :status, :execute_script, :send_keys, :screenshot, :add_checker, :disable_checker, :run_checkers, :exist?, :exists?, :assert_exists, :reset!, :browser, :wait_until, :wait_while, :windows, :window, :element, :elements, :extract_selector, :a, :as, :abbr, :abbrs, :address, :addresses, :area, :areas, :article, :articles, :aside, :asides, :audio, :audios, :b, :bs, :base, :bases, :bdi, :bdis, :bdo, :bdos, :blockquote, :blockquotes, :body, :bodys, :br, :brs, :button, :buttons, :canvas, :canvases, :caption, :captions, :cite, :cites, :code, :codes, :col, :cols, :colgroup, :colgroups, :data, :datas, :datalist, :datalists, :dd, :dds, :del, :dels, :details, :detailses, :dfn, :dfns, :dialog, :dialogs, :div, :divs, :dl, :dls, :dt, :dts, :em, :ems, :embed, :embeds, :fieldset, :fieldsets, :figcaption, :figcaptions, :figure, :figures, :footer, :footers, :form, :forms, :frameset, :framesets, :h1, :h1s, :h2, :h2s, :h3, :h3s, :h4, :h4s, :h5, :h5s, :h6, :h6s, :head, :heads, :header, :headers, :hgroup, :hgroups, :hr, :hrs, :htmls, :i, :is, :iframe, :iframes, :img, :imgs, :input, :inputs, :ins, :inses, :kbd, :kbds, :keygen, :keygens, :label, :labels, :legend, :legends, :li, :lis, :main, :mains, :map, :maps, :mark, :marks, :menu, :menus, :menuitem, :menuitems, :meta, :metas, :meter, :meters, :nav, :navs, :noscript, :noscripts, :object, :objects, :ol, :ols, :optgroup, :optgroups, :option, :options, :output, :outputs, :p, :ps, :param, :params, :pre, :pres, :progress, :progresses, :q, :qs, :rp, :rps, :rt, :rts, :ruby, :rubies, :s, :ss, :samp, :samps, :script, :scripts, :section, :sections, :select, :selects, :small, :smalls, :source, :sources, :span, :spans, :strong, :strongs, :style, :styles, :sub, :subs, :summary, :summaries, :sup, :sups, :table, :tables, :tbody, :tbodys, :td, :tds, :template, :templates, :textarea, :textareas, :tfoot, :tfoots, :th, :ths, :thead, :theads, :time, :times, :titles, :tr, :trs, :track, :tracks, :u, :us, :ul, :uls, :var, :vars, :video, :videos, :wbr, :wbrs, :checkbox, :checkboxes, :file_field, :file_fields, :font, :fonts, :frame, :frames, :hidden, :hiddens, :image, :images, :link, :links, :radio, :radios, :select_list, :select_lists, :text_field, :text_fields, :field_set, :field_sets, :psych_to_yaml, :to_yaml, :to_yaml_properties, :dclone, :to_json, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :extend, :display, :method, :public_method, :define_singleton_method, :object_id, :to_enum, :enum_for, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__]
需要“watir webdriver”
$browser=Watir::browser.new
$browser.methods
=> [:driver,:wd,:inspect,:goto,:back,:forward,:url,:title,:close,:quit,:cookies,:name,:text,:html,:alert,:refresh,:wait,:ready_state,:status,:status,:execute_脚本,:send_key,:屏幕截图,:add_checker,:disable_checker,:run_checker,:exists,:assert(exists,:reset!,:browser,:wait)wait(wait,:while,:while,:while,:windows内容:元素:摘录:选择器:a,:as,:abbr,:abbrs,:address,:address,:area,:area,:article,:articles,:asides,:audio,:audios,:b,:bs,:base,:base,:bdi,:bdi,:bdi,:blockquotes,:body,:br,:brs,:button,:button,:button,:button,:canvas,:caption,:caption,:base,:base,:base,:bases,:bdi,:bdi,:bdi,:bdi,:代码,:col,:cols,:colgroup,:colgroups,:data,:data,:datalist,:dd,:dds,:del,:dels,:details,:dfn,:dfns,:dialog,:dialogs,:div,:div,:divs,:dl,:dls,:dt,:dts,:em,:embedded,:embeddes,:fieldset,:figcaptions,:figcaptions,:figure,:figures,:footer,:footers,:forms,:forms,:frameset,:h1,:h1,:h1h2,:h2s,:h3,:h3,:h4,:h4s,:h5,:h6,:h6s,:head,:headers,:headers,:hgroups,:hgroups,:hr,:hrs,:htmls,:i,:is,:iframe,:iframes,:img,:imgs,:input,:inputs,:ins,:inses,:kbd,:kbds,:kbds,:keygens,:label,:label,:label,:ledge,:图例,:li,:lis,:main,:main,:main,:main,:main,:map,:菜单,:菜单,:标记,:菜单,:菜单,:菜单numitems,:meta,:metas,:meters,:meters,:nav,:navs,:noscript,:noscripts,:object,:objects,:ol,:ols,:optgroup,:option,:options,:options,:options,:output,:outputs,:p,:ps,:param,:params,:pre,:pres,:progress,:q,:qs,:rp,:rps,:rt,:rts,:ruby,:rubies,:s,:s,:s,:ss,:samp,:samps,:script,:section,:section,:select,:选择,:选择,:small,:source,:sources,:sources,:span,:span,:strong,:style,:sub,:subs,:summary,:sup,:sups,:table,:tables,:tbodys,:td,:tds,:template,:templates,:textarea,:textarea,:tfoots,:th,:th,:thead,:theads,:time,:times,:titles,:tr,:tr,:trs,:track,:track,:track,:track,:templates,:u,:us,:ul,:uls、:var、:vars、:video、:video、:video、:wbr、:wbrs、:复选框、:file_字段、:file_字段、:font、:font、:frame、:frames、:hiddens、:image、:image、:link、:link、:links、:radio、:radio、:select_list、:text_字段、:field_集、:field_集、:psych_to_yaml、:to_yaml、:to_yaml、:to_yaml、:properties to、:lone、:json、:nil?,:===,:=,:!~,:eql?,:hash,:,:class,:singleton_class,:clone,:dup,:taint,:taint,:untaint,:untrust,:untrust,:untrust?,:untrust,:freeze,:freeze?,:to_s,:methods,:singleton_方法,:protected_方法,:private_方法,:public_方法,:instance_变量,:instance_变量,:instance_-get,:instance_-variable,:remove_instance_变量:instance_of?,:kind_of?,:is_a?,:tap,:send,:public_send,:respond_to?,:extend,:display,:method,:public_method,:define_singleton_方法,:object_id,:to_enum_枚举,:==,:equal?,:!,:!,:!=,:instance_eval,:instance_exec,:_send,:u id
除了需要访问的json临时文件之外,还有一种方法可以访问其他所有内容。 我没有看到任何关于这方面的文档,因为我不确定我问的问题是否正确

更新:
该方法是一篇200篇文章,扩展类型为json。

需要关闭此文章,我找到了要问的正确问题。