I usually use selenium to do webscrapping on sites that have a lot of javascript. I usually use Selenium with Java, but in Python it works, too. Below is a code with a silly but functional example.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()
Please note that in order to use the Chrome Driver, you must have Chromedriver, which you can download at ChromeDriver . The Selenium WebDriver documentation in Python is at Documentation .