code: def get_html(self):
          
  
          if self.use_ghost:
              self.url = urljoin("http://", self.url)
              import selenium
              import selenium.webdriver
              driver = selenium.webdriver.PhantomJS(
                  service_log_path=os.path.devnull)
              driver.get(self.url)
              page_html = driver.page_source
              page_url = driver.current_url
              driver.quit()
          else:
              if self.proxy_url:
                  print("Using proxy: " + self.proxy_url + "\n")
              try:
                  page = requests.get(self.url, proxies=self.proxies)
                  if page.status_code != 200:
                      raise PageLoadError(page.status_code)
              except requests.exceptions.MissingSchema:
                  self.url = "http://" + self.url
                  page = requests.get(self.url, proxies=self.proxies)
                  if page.status_code != 200:
                      raise PageLoadError(page.status_code)
              except requests.exceptions.ConnectionError:
                  raise PageLoadError(None)
              try:
                  page_html = page.text
                  page_url = page.url
              except UnboundLocalError:
                  raise PageLoadError(None)
  
          self.page_html = page_html
          self.page_url = page_url
          return (self.page_html, self.page_url)
docs: Downloads HTML content of page given the page_url