这是一种比较好的反反爬技术 #安装:pip install selenium=2.48.0 #显示:pip show selenium #卸载:pip uninstall selenium #模拟用户行为 from selenium import webdriver import os import time from selenium import common #生成一个浏览器对象 driver = webdriver.PhantomJS() #访问 driver.get('http://w
web项目中请求出现错误,如下: HTTP Status 500 - Error instantiating servlet class XXXX类 type Exception report message Error instantiating servlet class test.Test description The server encountered an internal error that prevented it from fulfilling this request.
1.找到anaconda下的anaconda prompt并打开(或者CMD)都可以 2.在anaconda prompt里面输入:jupyter notebook --generate-config 回车后会生成一个配置文件jupyter_notebook_config.py,会提示该文件所在的目录. 3.找到并打开这个文件,需要在这个文件设置默认浏览器处增加Chrome,找到如下代码(95-99行): ## Specify what command to use to invoke a we
FireFox每次访问页面时检查最新版本 浏览器都有自己的缓存机制,作为开发人员,每次js的修改都要清空缓存,显然很不方便.而firefox并没有提供ie那样的设置. 下面的方法就可以非常方便的设置firefox每次访问页面时检查最新版本 1.在firefox的地址栏上输入about:config回车2.找到browser.cache.check_doc_frequency选项,双击将3改成1保存即可. 0: Once per session 每个进程一次 每次启动Firefox时检查 1: E