Python Xpath: lxml.etree.XPathEvalError: Invalid predicate
<p>I'm trying to learn how to scrape web pages and in the tutorial I'm using the code below is throwing this error:</p>

<pre><code>lxml.etree.XPathEvalError: Invalid predicate
</code></pre>

<p>The website I'm querying is (don't judge me, it was the one used in the training vid :/ ): <a href="https://itunes.apple.com/us/app/candy-crush-saga/id553834731" rel="noreferrer">https://itunes.apple.com/us/app/candy-crush-saga/id553834731</a></p>

<p>The xpath string that causes the error is here:</p>

<pre><code>links = tree.xpath('//div[@class="center-stack"//*/a[@class="name"]/@href')
</code></pre>

<p>I'm using the LXML and requests libraries.</p>

<p>If you need any additional info I'm happy to provide!</p>