title: How to get past Javascript is disabled in your browser error when web scraping with Python
body: <p>I am trying to create a script to download an ebook into a pdf. When I try to use beautifulsoup in it I to print the contents of a single page, I get a message in the console stating &quot;Oh no! It looks like JavaScript is disabled in your browser. Please re-enable to access the reader.&quot;
  I have already enabled Javascript in Chrome and this same piece of code works for a page like a stackO answer page. What could be blocking Javascript in this page and how can I bypass it?</p>
  <p>My code for reference:</p>
  <pre><code>url = requests.get(&quot;https://platform.virdocs.com/r/s/0/doc/350551/sp/14552484/mi/47443495/?cfi=%2F4%2F2%5BP7001013978000000000000000003FF2%5D%2F2%2F2%5BP7001013978000000000000000010019%5D%2F2%2C%2F1%3A0%2C%2F1%3A0&quot;)
  url.raise_for_status()
  soup = bs4.BeautifulSoup(url.text, &quot;html.parser&quot;)
  elems = soup.select(&quot;p&quot;)
  
  print(elems[0].getText())
  </code></pre>