Skip to content

Instantly share code, notes, and snippets.

@nikneroz
Last active January 15, 2018 16:20
Show Gist options
  • Save nikneroz/bd28d8cf73283a3c4bc0842bc3168f81 to your computer and use it in GitHub Desktop.
Save nikneroz/bd28d8cf73283a3c4bc0842bc3168f81 to your computer and use it in GitHub Desktop.
Use Hound for site scrapping
config :hound, [driver: "chrome_driver"]
session = Hound.start_session()
navigate_to("https://hello.world")
:timer.sleep(7 * 1000)
json_tag = find_element(:tag, "pre")
json = inner_html(json_tag)
Hound.end_session(session)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment