All Projects → eddycjy → Fake Useragent

eddycjy / Fake Useragent

Licence: apache-2.0
A wide variety of random useragents

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Fake Useragent

useragent-generator
Easily generate correct user-agent strings for popular browsers
Stars: ✭ 62 (-75.49%)
Mutual labels:  fake, useragent
Useragentparser
UserAgent parsing done right
Stars: ✭ 225 (-11.07%)
Mutual labels:  useragent
Jhop
🏎Create fake REST API in one sec.
Stars: ✭ 148 (-41.5%)
Mutual labels:  fake
Wmi Static Spoofer
Spoofing the Windows 10 HDD/diskdrive serialnumber from kernel without hooking
Stars: ✭ 199 (-21.34%)
Mutual labels:  fake
Next Useragent
next-useragent parses browser user-agent strings for next.js
Stars: ✭ 158 (-37.55%)
Mutual labels:  useragent
Fake Apache Log Generator
Generate a boatload of Fake Apache Log files very quickly
Stars: ✭ 207 (-18.18%)
Mutual labels:  fake
Gofakeit
Random fake data generator written in go
Stars: ✭ 2,193 (+766.8%)
Mutual labels:  fake
Ng Device Detector
Angular module to detect OS / Browser / Device
Stars: ✭ 243 (-3.95%)
Mutual labels:  useragent
Pikarma
📡🍓🍍 Detects wireless network attacks performed by KARMA module (fake AP). Starts deauthentication attack (for fake access points)
Stars: ✭ 222 (-12.25%)
Mutual labels:  fake
Alfred Fakeum
Generate fake test data in Alfred
Stars: ✭ 195 (-22.92%)
Mutual labels:  fake
Uap Ruby
A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UA database
Stars: ✭ 188 (-25.69%)
Mutual labels:  useragent
Faker
Faker is a Python package that generates fake data for you.
Stars: ✭ 13,401 (+5196.84%)
Mutual labels:  fake
Joal
An open source command line RatioMaster with an optional WebUI.
Stars: ✭ 213 (-15.81%)
Mutual labels:  fake
Pusher Fake
A fake Pusher server for development and testing.
Stars: ✭ 148 (-41.5%)
Mutual labels:  fake
Faker
A library for generating fake data such as names, addresses, and phone numbers.
Stars: ✭ 231 (-8.7%)
Mutual labels:  fake
Shadow Useragent
Pick the most common user-agents on the Internet 👻
Stars: ✭ 147 (-41.9%)
Mutual labels:  useragent
Fake Terminal Website
A fully customizable terminal-like website template
Stars: ✭ 174 (-31.23%)
Mutual labels:  fake
Ts Auto Mock
Typescript transformer to unlock automatic mock creation for interfaces and classes
Stars: ✭ 204 (-19.37%)
Mutual labels:  fake
Fakerpress
A WordPress plugin that implements an easy way to create fake data inside WordPress.
Stars: ✭ 250 (-1.19%)
Mutual labels:  fake
Browserslist Useragent
🦔A utility to match a browserslist query with user agent strings
Stars: ✭ 231 (-8.7%)
Mutual labels:  useragent

Fake Useragent image

A wide variety of random useragents

简体中文

Support

  • All User-Agent Random
  • Chrome
  • InternetExplorer (IE)
  • Firefox
  • Safari
  • Android
  • MacOSX
  • IOS
  • Linux
  • IPhone
  • IPad
  • Computer
  • Mobile

Installation

$ go get github.com/EDDYCJY/fake-useragent

Usage

package main

import (
	"log"

	"github.com/EDDYCJY/fake-useragent"
)

func main() {
	// recommend to use
	random := browser.Random()
	log.Printf("Random: %s", random)

	chrome := browser.Chrome()
	log.Printf("Chrome: %s", chrome)

	internetExplorer := browser.InternetExplorer()
	log.Printf("IE: %s", internetExplorer)

	firefox := browser.Firefox()
	log.Printf("Firefox: %s", firefox)

	safari := browser.Safari()
	log.Printf("Safari: %s", safari)

	android := browser.Android()
	log.Printf("Android: %s", android)

	macOSX := browser.MacOSX()
	log.Printf("MacOSX: %s", macOSX)

	ios := browser.IOS()
	log.Printf("IOS: %s", ios)

	linux := browser.Linux()
	log.Printf("Linux: %s", linux)

	iphone := browser.IPhone()
	log.Printf("IPhone: %s", iphone)

	ipad := browser.IPad()
	log.Printf("IPad: %s", ipad)

	computer := browser.Computer()
	log.Printf("Computer: %s", computer)

	mobile := browser.Mobile()
	log.Printf("Mobile: %s", mobile)
}

Customize

You can adjust the maximum number of crawl pages and time intervals, maximum timeouts. If not, it is the default.

client := browser.Client{
	MaxPage: 3,
	Delay: 200 * time.Millisecond,
	Timeout: 10 * time.Second,
}
cache := browser.Cache{}
b := browser.NewBrowser(client, cache)

random := b.Random()

Update the browser temporary file cache (re-get the source to get the latest data).

client := browser.Client{}
cache := browser.Cache{
	UpdateFile: true,
}
b := browser.NewBrowser(client, cache)

Output

Random: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Chrome: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

IE: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Firefox: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0

Safari: Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_5 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0 Mobile/15D60 Safari/604.1

Android: Mozilla/5.0 (Linux; Android 6.0; MYA-L22 Build/HUAWEIMYA-L22) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36

MacOSX: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14

IOS: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1

Linux: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

IPhone: Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0 Mobile/14C92 Safari/602.1

IPad: Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3

Computer: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

Mobile: Mozilla/5.0 (Linux; Android 7.0; Redmi Note 4 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].