擅长:python、mysql、java
<p>解析器无法在这行<code>apk_link = browser.find_element_by_css_selector(".btn.btn-success.btn-block").get_attribute('href')</code>中提取正确的url</p>
<p>就像打印url时显示的<code>https://apps.evozi.com/apk-downloader/?id=com.instagram.android</code></p>
<p>把线路改成</p>
<pre><code>apk_link = browser.find_element_by_css_selector(".btn.btn-success.btn-block")
ele=apk_link.get_attribute('href')
for rnd in range(5):
resp = requests.get(ele)
if resp.headers['Content-Length'] == str(len(resp.content)):
return resp.content
</code></pre>
<p>代码将正常工作</p>