Skip to content

Instantly share code, notes, and snippets.

@ealden
Last active March 18, 2019 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealden/6150f13d913cf8f6c45f9b9f6e40fa24 to your computer and use it in GitHub Desktop.
Save ealden/6150f13d913cf8f6c45f9b9f6e40fa24 to your computer and use it in GitHub Desktop.
from selenium import webdriver
import json
def search(url):
driver = webdriver.Chrome()
driver.get(url)
body = driver.find_element_by_tag_name('pre').text
data = json.loads(body)
driver.close()
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment