Нет необходимости повторно запрашивать обновленный URL, вам придется подождать пару секунд, используя модуль времени.
from bs4 import BeautifulSoup
from selenium import webdriver
import time
os.environ["PATH"] += os.pathsep + r'/home/pierre/PycharmProjects/scraping/venv'
browser = webdriver.Firefox()
browser.get('http://karresults.nic.in/indexPUC_2019.asp')
reg = browser.find_element_by_id('reg')
reg.send_keys('738286')
sub = browser.find_element_by_class_name('btn-default')
sub.click()
time.sleep(3)
soup = BeautifulSoup(browser.page_source, 'lxml')
results = []
for record in soup.find_all('tr'):
for data in record.find_all('td'):
results = results + [data.text.replace(u'\xa0', u'').strip()]
with open('myfile.csv', 'w') as f:
for item in results:
f.write(item + ',')
CSV-файл O / P:
Name,ANIKET ANIL BALEKUNDRI,Reg. No.,738286,ENGLISH,76,,76P,HINDI,76,,76P,Part A - TOTAL,152,PHYSICS,44,30,74P,CHEMISTRY,46,30,76P,MATHEMATICS,73,,73P,BIOLOGY,55,29,84P,Part B - TOTAL,307,GRAND TOTAL MARKS,459,FINAL RESULT,First Class,