Last active
May 19, 2020 01:54
-
-
Save mirzalazuardi/96cbee6306b2be73bc672125c500e497 to your computer and use it in GitHub Desktop.
scrapping with watir and nokogiri (dynamic js)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser = Watir::Browser.new(:chrome, headless: true) | |
browser.goto(url) | |
doc = browser.element(css: 'html').wait_until(&:present?) | |
Nokogiri::HTML(doc.inner_html).css('html’) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment