title: Web scrape after search with Python, Selenium, BeautifulSoup
body: <p>I want to web scrape a high school summary table after entering all the necessary information. However, I can't figure out how to do that since the url doesn't change after getting onto the school's page. I didn't find anything that is relevant to what I'm trying to do. Any idea how I can scrape a table after going through the search process? Thank you.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  from selenium import webdriver
  from selenium.webdriver.support.ui import Select
  from selenium.webdriver.common.keys import Keys
  import time
  
  driver = webdriver.Chrome(&quot;drivers/chromedriver&quot;)
  
  driver.get(&quot;https://web3.ncaa.org/hsportal/exec/hsAction&quot;)
  
  state_drop = driver.find_element_by_id(&quot;state&quot;)
  state = Select(state_drop)
  state.select_by_visible_text(input(&quot;New Jersey&quot;))
  
  driver.find_element_by_id(&quot;city&quot;).send_keys(input(&quot;Galloway&quot;))
  driver.find_element_by_id(&quot;name&quot;).send_keys(input(&quot;Absegami High School&quot;))
  driver.find_element_by_class_name(&quot;forms_input_button&quot;).send_keys(Keys.RETURN)
  driver.find_element_by_id(&quot;hsSelectRadio_1&quot;).click()
  
  url = driver.current_url
  print(url)
  r = requests.get(url)
  soup = BeautifulSoup(r.text, 'html.parser')
  school_info = soup.find('table', class_=&quot;border=&quot;)
  print(school_info)
  </code></pre>