草庐IT

dryscrape

全部标签

python - pip install dryscrape 失败,出现 "error: [Errno 2] No such file or directory: ' src/webkit_server'”?

我需要为python安装dryscrape,但出现错误,这是什么问题?C:\Users\parvij\Anaconda3\Scripts>pipinstalldryscrape我明白了:CollectingdryscrapeCollectingwebkit-server>=1.0(fromdryscrape)Usingcachedwebkit-server-1.0.tar.gzCollectingxvfbwrapper(fromdryscrape)Requirementalreadysatisfied(use--upgradetoupgrade):lxmlinc:\users\parv

带有 cookie 的 Python dryscrape 抓取页面

我想从站点获取一些数据,这需要登录。我通过请求登录url="http://example.com"response=requests.get(url,{"email":"a@gmail.com","password":"12345"})cookies=response.cookies然后我想从一些JS页面获取数据。通过请求这是不可能的,所以我必须为此使用dryscrape。importdryscrapeurl="http://example.com/js-page"sess=dryscrape.Session()sess.visit(url)是否可以将cookie传递给visit()或