Faker
  • Quick start
  • Guide
    • Providers
      • SSN
      • Base
      • Address
      • Company
      • Datetime
      • Internet
      • Lorem
      • Phone number
      • Miscellaneous
      • Color
      • Credit card
      • File
      • Person
      • User agent
    • Localization
    • Randomness seed
    • Generator
  • Github
  • Website
  • Sponsor this project
Powered by GitBook
On this page

Was this helpful?

Edit on Git
  1. Guide
  2. Providers

User agent

All parameters are optional. The sample parameters are the default values used by each function.

Faker.mac_processor()
=> U; PPC


Faker.linux_processor()
=> i686


Faker.user_agent()
=> chrome


Faker.windows_platform_token()
=> Windows 98; Win 9x 4.90


Faker.linux_platform_token()
=> X11; Linuxi686


Faker.mac_platform_token()
=> Macintosh; PPC Mac OS X 10_6_3


Faker.chrome()
=> Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_5) AppleWebKit/5352 (KHTML, like Gecko) Chrome/23.0.856.0 Safari/5352


Faker.internet_explorer()
=> Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 6.1; Trident/3.1


Faker.safari()
=> Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2 like Mac OS X; sl-SI AppleWebKit/535.5.2 (KHTML, like Gecko) Version/3.0.5 Mobile/8B111 Safari/6535.5.2


Faker.firefox()
=> Mozilla/5.0 (X11; Linuxx86_64; rv:1.9.6.20) Gecko/2005-9-30 19:43:41 Firefox/7.0


Faker.opera()
=> Opera/8.10.(X11; Linuxi686; en-US Presto/2.9.178 Version/12.00

PreviousPersonNextLocalization

Last updated 4 years ago

Was this helpful?