Code Monkey home page Code Monkey logo

local_ua's Introduction

local_ua

fake_useragent 是一个非常好用的随机请求头模块

但因为这个模块在本地运行总是会因为各种各样的原因, 报错

所以重新整理fake_useragent模块的所有请求头, 实现在本地获取随机请求头

实际上就是把所有的请求头保存到本地 😂

ua.py 是所有的请求头

ua_b.py 是所有的请求头按照浏览器分类

ua_c.py 是主流的浏览器请求头

使用方法

from user_agent import UserAgent
# 获取所有浏览器的随机请求头
ua = UserAgent()
ua.rget

# 获取chrome随机请求头
ua = UserAgent("chrome")
ua.rget

local_ua's People

Contributors

mehaei avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.