python 伪装 UserAgent

Posted on Posted in python
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8

"""

"""
from fake_useragent import UserAgent

ua = UserAgent()

print(ua.ie)
print(ua.opera)
print(ua.chrome)
print(ua.firefox)
print(ua.safari)
print(ua.google)
print(ua.random)

说明文档 fake-useragent

» 转载请注明来源:若我若鱼 » python 伪装 UserAgent

Leave a Reply

Your email address will not be published. Required fields are marked *

three × two =