Waz*_*azy 4 google-search wkhtmltopdf
wkhtmltopdf没有给出谷歌搜索
wkhtmltopdf命令的确切pdf
wkhtmltopdf toc --javascript-delay 5000 --load-error-handling ignore "https://www.google.co.in/search?hl=en&safe=off&client=firefox-beta&hs=1re&tbo=d&rls=org.mozilla%3Aen-US%3Aofficial&channel=fflb&q=height+of+lionel+messi&oq=height+of+lionell&gs_l=serp.3.0.0i13l2j0i13i30.3477969.3479300.0.3480775.7.7.0.0.0.0.233.1161.2j1j4.7.0.les%3B..0.0...1c.1.8wCY6CBhpqY" google.pdf
Run Code Online (Sandbox Code Playgroud)
尝试谷歌搜索
在那里1.69m谷歌搜索框下没有显示
我自己得到了答案,如果有人在将来遇到同样的问题
我是不是在发送'User-Agent'
试试这个
wkhtmltopdf --custom-header "User-Agent" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1" --custom-header-propagation "https://www.google.co.in/search?hl=en&safe=off&client=firefox-beta&hs=1re&tbo=d&rls=org.mozilla%3Aen-US%3Aofficial&channel=fflb&q=height+of+lionel+messi&oq=height+of+lionell&gs_l=serp.3.0.0i13l2j0i13i30.3477969.3479300.0.3480775.7.7.0.0.0.0.233.1161.2j1j4.7.0.les%3B..0.0...1c.1.8wCY6CBhpqY" google.pdf
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1785 次 |
| 最近记录: |