Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ruby 为我们提供了启动浏览器、在该浏览器中打开 url 并解析页面内容的方法
browser = Watir::Browser.new(:firefox) browser.goto("http://example.com") browser.wait results = browser.text parsed_results = JSON.parse(results)
我们可以在 PHP 中做这样的事情吗?如果是,那怎么可能?