BeautifulSoup: scrape HTML only accessible after clicking "Accept" in the same URL
<p>I'm trying to scrape some information from a certain URL. Let's call it: <code>www.foo.bar/baz</code></p>

<p>When you access that URL with a web browser, the usual "I'm older than 18" button appears. The URL doesn't change and the real content is only loaded when you manually click said button.</p>

<p>I would like to "simulate" that click in the "I'm older than 18" button in order to be able to access the information that I really want to scrape.</p>

<p>This is the HTML code of the button that should be clicked:</p>

<pre><code>&lt;div align=center&gt;
    &lt;a href="javascript:showContent()"&gt;&lt;span&gt;ENTRAR&lt;/span&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>And this is the JavaScript function that gets called by the href attribute:</p>

<pre><code>&lt;script type="text/javascript"&gt;&lt;!--
function showContent() {
    document.getElementById('all-content').style.display = '';
    document.getElementById('adultmessage').style.display = 'none';
    document.cookie = 'adult=yes; path=/';
}
function hideAdultContent(){
    document.getElementById('all-content').style.display = 'none';
}
// --&gt;&lt;/script&gt;
</code></pre>

<p>I would appreciate any tips on what to research in order to do this.</p>