import requests import time from requests_html import HTMLSession def getTitle(url): session = HTMLSession() r = session.get(url) r.html.render(sleep=1)