擅长:python、mysql、java
<p>无需使用<code>BeautifulSoup</code>的另一种更快的方法:</p>
<pre><code>import requests
url = "http://store.steampowered.com/contenthub/querypaginated/tags/NewReleases/render/?query=&start=20&count=20&cc=US&l=english&no_violence=0&no_sex=0&v=4&tag=RPG" # This returns your query in json format
r = requests.get(url)
print(round(r.json()['total_count'] / 20)) # total_count = number of records, 20 = number of pages shown
</code></pre>
<blockquote>
<p>11</p>
</blockquote>