打开pycharm
点击pycharm下方菜单栏的Terminal
在命令行输入pip install fake_useragent
出现(Successfully installed fake_useragent-0.1.11)即安装成功
因为我已经安装过,所以会显示已安装
(Requirement already satisfied: fake_useragent in e:\python\anaconda\lib\site-packages (0.1.11))
使用方法看下方链接
(fake_useragent的安装及使用方法)Git Hub:https://github.com/hellysmile/fake-useragent
pycharm(python)获取各种浏览器的useragent,安装fake-useragent
最新推荐文章于 2024-07-25 16:49:41 发布