1、保存http://fake-useragent.herokuapp.com/browsers/0.1.11网站的内容
用软件notepad++来修改hosts文件(C:\WINDOWS\system32\drivers\etc)进入网站http://fake-useragent.herokuapp.com/browsers/0.1.11
修改hosts文件方法:【学习笔记00】修改hosts文件_rn:的博客-CSDN博客
网站就是这个样子
右键保存并命名为 fake_useragent_0.1.11.json
一个json文件
2、找到刚刚保存的json文件要放到的地方
我选择在cmd中输入如下代码
python
回车进入python
然后输入
import tempfile
tempfile.gettempdir()
得到如下一个Temp目录的位置:
这个位置就是我们要保存json文件的位置
在电脑中找到这个目录
把刚才在网站保存的json文件复制进去
在我现在的电脑上可以正常使用fake_useragent了