Language la¶
faker.providers.address
¶
fake.longitude()
# Decimal('96.949739')
fake.building_number()
# u'93542'
fake.street_address()
# u'29272 Watkins Passage Apt. 805'
fake.postalcode_plus4()
# u'96810-8958'
fake.city_prefix()
# u'North'
fake.military_ship()
# u'USNS'
fake.city()
# u'Grantbury'
fake.zipcode_plus4()
# u'83834-8785'
fake.state_abbr()
# u'KS'
fake.latitude()
# Decimal('-55.6417715')
fake.street_suffix()
# u'Flats'
fake.city_suffix()
# u'shire'
fake.military_dpo()
# u'Unit 1379 Box 9508'
fake.country_code(representation="alpha-2")
# u'SY'
fake.country()
# u'Georgia'
fake.secondary_address()
# u'Suite 666'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('99.441051')
fake.postalcode()
# u'34664'
fake.address()
# u'2582 Beard Rest Apt. 348\nEast Vanessaberg, NH 16492'
fake.state()
# u'Kansas'
fake.military_state()
# u'AE'
fake.street_name()
# u'Li Rapids'
fake.zipcode()
# u'53057'
fake.postcode()
# u'33688'
fake.military_apo()
# u'PSC 4397, Box 5533'
faker.providers.automotive
¶
fake.license_plate()
# u'KWB-2016'
faker.providers.bank
¶
fake.bban()
# 'VWGU1983301422900'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB77HYTV9315490214667'
faker.providers.barcode
¶
fake.ean(length=13)
# u'8245663716925'
fake.ean13()
# u'2237190392556'
fake.ean8()
# u'38695902'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(230,127,204)'
fake.color_name()
# u'PaleGoldenRod'
fake.rgb_color()
# u'171,71,133'
fake.safe_hex_color()
# u'#22cc00'
fake.safe_color_name()
# u'aqua'
fake.hex_color()
# u'#f426d7'
faker.providers.company
¶
fake.company()
# u'Webb LLC'
fake.company_suffix()
# u'Inc'
fake.catch_phrase()
# u'Synergized asynchronous forecast'
fake.bs()
# u'whiteboard robust ROI'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'525'
fake.credit_card_provider(card_type=None)
# u'Diners Club / Carte Blanche'
fake.credit_card_full(card_type=None)
# u'JCB 15 digit\nSarah Green\n180077346907645 04/26\nCVC: 118\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '02/27'
fake.credit_card_number(card_type=None)
# u'5514572890499185'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'NEO'
fake.currency_code()
# 'LRD'
fake.currency_name()
# 'S\xc3\xa3o Tom\xc3\xa9 and Pr\xc3\xadncipe dobra'
fake.cryptocurrency_name()
# 'Feathercoin'
fake.cryptocurrency()
# ('BCH', 'Bitcoin Cash')
fake.currency()
# ('XCD', 'Eastern Caribbean dollar')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 9, 10, 22, 31, 4)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xffffaa3de280>
fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 8, 16)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(1990, 3, 29, 5, 31, 50)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2012, 4, 1)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 14, 17, 38, 24)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 8, 8)
fake.day_of_week()
# 'Friday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 8, 27, 4, 7, 4)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2013, 9, 3)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2000, 12, 21, 5, 8, 55)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '2014-09-08'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 16, 10, 58, 39)
fake.date_object(end_datetime=None)
# datetime.date(2015, 9, 8)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 3, 6)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1980-02-23T05:13:29'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 9, 13)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2014, 6, 10)
fake.month()
# '07'
fake.year()
# '2009'
fake.day_of_month()
# '24'
fake.unix_time(end_datetime=None, start_datetime=None)
# 161671379
fake.timezone()
# u'America/Jamaica'
fake.century()
# u'XV'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1966, 3, 8)
fake.time_object(end_datetime=None)
# datetime.time(16, 35, 11)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 2, 9, 7, 57, 6)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1998, 2, 7, 2, 6, 37)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '00:14:19'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 12)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 8, 8, 12, 0, 16)
fake.month_name()
# 'June'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(333, 10, 19, 7, 10, 59)
fake.time_delta(end_datetime=None)
# datetime.timedelta(2185, 42500)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/vdh'
fake.mime_type(category=None)
# u'image/tiff'
fake.file_path(depth=1, category=None, extension=None)
# u'/asperiores/qui.ppt'
fake.unix_partition(prefix=None)
# u'/dev/xvdc0'
fake.file_name(category=None, extension=None)
# u'consectetur.mp3'
fake.file_extension(category=None)
# u'avi'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'mayodouglas@hotmail.com'
fake.image_url(width=None, height=None)
# u'https://placeholdit.imgix.net/~text?txtsize=55&txt=950x882&w=950&h=882'
fake.tld()
# u'com'
fake.email(*args, **kwargs)
# u'dannydonovan@peterson.com'
fake.url(schemes=None)
# u'http://www.webb-sullivan.com/'
fake.ipv4_private(network=False, address_class=None)
# '10.80.210.129'
fake.user_name(*args, **kwargs)
# u'susanspencer'
fake.uri_extension()
# u'.jsp'
fake.uri_page()
# u'terms'
fake.free_email_domain(*args, **kwargs)
# u'yahoo.com'
fake.safe_email(*args, **kwargs)
# u'bradleypreston@example.net'
fake.ascii_email(*args, **kwargs)
# 'jennifer70@hotmail.com'
fake.ipv4_network_class()
# u'c'
fake.ipv4_public(network=False, address_class=None)
# '199.85.66.146'
fake.ascii_company_email(*args, **kwargs)
# 'brandyarmstrong@ryan-beck.com'
fake.domain_name(*args, **kwargs)
# u'woods.com'
fake.ipv4(network=False, address_class=None, private=None)
# '237.136.175.29'
fake.domain_word(*args, **kwargs)
# u'perez'
fake.slug(*args, **kwargs)
# u'dolorem-labore'
fake.uri_path(deep=None)
# u'category/blog/search'
fake.company_email(*args, **kwargs)
# u'travisherring@sanders.com'
fake.uri()
# u'http://www.thomas.com/homepage/'
fake.ipv6(network=False)
# '45fe:6c6a:6992:7d97:4ba3:b275:2011:264a'
fake.free_email(*args, **kwargs)
# u'ujacobson@gmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'natasha24@example.org'
fake.mac_address()
# u'2a:dd:7c:84:82:f5'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'1-65611-464-X'
fake.isbn13(separator="-")
# u'978-1-75205-036-9'
faker.providers.job
¶
fake.job()
# 'Chartered legal executive (England and Wales)'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Quae magni temporibus. Quisquam eum maiores sunt qui.\nAlias sed aut minus dolores. Aspernatur doloribus alias illo. Eaque quisquam qui eaque.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Error officia ipsum repellendus quo. Delectus impedit qui facilis accusamus illo sequi.',
# u'Suscipit provident qui nemo culpa quae est non. Labore facere omnis corrupti amet. Iure laboriosam consequuntur voluptas est corrupti.',
# u'Aliquid ratione in illo cumque eius repudiandae itaque. Nemo nisi doloribus nam quae.']
fake.words(nb=3, ext_word_list=None)
# [u'quae', u'facilis', u'fuga']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Eum velit impedit quos alias voluptatum.',
# u'Enim modi dolorum.',
# u'Nobis dolores optio maiores consectetur est.']
fake.word(ext_word_list=None)
# u'consequuntur'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Quia veniam sed nihil ullam deleniti. Odit maxime maiores aliquam architecto animi iusto.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Ut quo voluptates facilis aspernatur.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'A$bA1EmV*6'
fake.locale()
# u'fo_FO'
fake.binary(length=1048576)
# bytearray(b'\xe6O\x91\xcb\x06\x0c\xed\xa9/\x0e\xb3]\xb5,G\xeb\xf6#\x07\x89\xe9j\xc1Q;d\xfa\xbf<\x01\x86Dy\x8a\x83\xc4\x1d\x05%\xda&W\x82\x06\x87\xfc\xd8\x13\x9d\xc1\x85XQ\xef\x81\x9ew\xa6\xe6\x94\xc5\x9ak&\xe3w\x00\xe0\xa3\x15\x92_S\xd1\x82?\xad`1\x1fN\xcc\x00\x06\x1aK\xe3%\x16\x16m\x11\xdaE0\xd1$\xc6\x8bm\xe7C\xde\xb6)\x1a>\xc7i\tFD\xf9\xcc\xb7\x0ej\tG\xfag\x10\xa4\xb8\xad\x9c\xc4\x18g\xb25\x0c\x8d\x80#\xb1j\x1d\'\xae\x14\x85\xb28U\ts\x9ah\xc2(\x13\x7f\x13\x11\xf3F\xbf\x87\x93uvuS\xdb\xab,\xc4\xc8&.\xe4\xed\xc3\xebND\x95p2>\x10\xbf\xac\x92\x8e\x9b8\x0f\xb5\x86\xbf\x00\xf99\xfe\x11\xcd\x86\xd4\x8b\x90tM\xff<\xc9\xbau\x14\xf2\xc2\xf1\x07_\xcai\xae\xea\xfe;<\x86a\x08\xb4O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:\x85P8Tt\xf4{c\xf9f\x10\x8e})\xf8\xd2Q')
fake.md5(raw_output=False)
# 'b6e01e39c9cca74acf9ef7d4a0d712e6'
fake.sha1(raw_output=False)
# '9524459b9dea61483950a9dc1a2c48a3ebe16b73'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# 'f5b7461b8084e1f3273cd8b419b92b47e234a7bf6f26a01983b9fb0d6c0cacd6'
fake.uuid4()
# '6cfa2c9f-1edf-7c68-e2d1-18e71bb5b124'
fake.language_code()
# u'ka'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Kelley'
fake.name_female()
# u'Brittany Ramirez'
fake.prefix_male()
# u'Mr.'
fake.prefix()
# u'Mr.'
fake.name()
# u'Michelle Davis'
fake.suffix_female()
# u'MD'
fake.name_male()
# u'Jason Horton'
fake.first_name()
# u'Paul'
fake.suffix_male()
# u'DVM'
fake.suffix()
# u'MD'
fake.first_name_male()
# u'Carl'
fake.first_name_female()
# u'Christina'
fake.last_name_female()
# u'Williams'
fake.last_name()
# u'Crosby'
fake.prefix_female()
# u'Ms.'
faker.providers.phone_number
¶
fake.phone_number()
# u'(451)580-6798x520'
fake.msisdn()
# '7725575622049'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'39322 Hanna Brook Suite 131\nNorth Kenneth, IN 45821',
# 'birthdate': datetime.date(1936, 2, 17),
# 'mail': u'traci84@yahoo.com',
# 'name': u'Michael Marshall',
# 'sex': 'M',
# 'username': u'jasongordon'}
fake.profile(fields=None, sex=None)
# { 'address': u'559 Perkins Plains\nSouth Bridget, GU 89404',
# 'birthdate': datetime.date(1919, 3, 30),
# 'blood_group': 'B+',
# 'company': u'Carter-Miller',
# 'current_location': (Decimal('-21.921574'), Decimal('-179.268471')),
# 'job': 'Advertising art director',
# 'mail': u'matthewsjames@gmail.com',
# 'name': u'Kristen Preston',
# 'residence': u'2308 Shaun Fork Apt. 513\nLake Michelleville, NJ 36622',
# 'sex': 'F',
# 'ssn': u'210-16-3683',
# 'username': u'lanelee',
# 'website': [ u'https://www.brock-clayton.com/',
# u'https://www.shah.com/',
# u'https://davis-kim.com/',
# u'http://www.hall.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# ( u'XZvqgjHvJfzZmmYezOkz',
# -8487420494.42545,
# 9489,
# u'richardanderson@chapman.info',
# u'stephanie41@anderson.com',
# u'ErUaSZnXrZMRqeAmgtep',
# datetime.datetime(1971, 2, 17, 17, 28, 51))
fake.pystr(min_chars=None, max_chars=20)
# u'NiPDiuWpCIBeyttcVYyf'
fake.pystruct(count=10, *value_types)
# ( [ u'AiwWTxQUNRgZSunIUfYc',
# u'smWtXUEfgCaPYAshAXdW',
# u'https://www.wilkins.com/author/',
# u'rkIdIgqkEXLvhSRBqIvg',
# u'BAxpescnLWMwrVIeqnVf',
# u'https://www.castro.info/main.asp',
# u'danielstony@norris.com',
# u'http://www.hartman.net/tag/app/terms.jsp',
# u'https://www.richardson.com/categories/posts/search/',
# 6375],
# { u'eligendi': 952418771.291,
# u'iusto': datetime.datetime(1994, 4, 15, 9, 5, 47),
# u'labore': u'kSglOxShWKTZQKvXBktj',
# u'maiores': u'sckxarIslXZegHrSceUr',
# u'molestias': u'http://www.baker.net/about.html',
# u'nostrum': u'JjxsBjtDZyQrbxXTrLtL',
# u'odio': 3809,
# u'odit': u'QjoaaWGBsmEJluVaOYFy',
# u'quasi': 2623362291.0,
# u'repellendus': 0.18},
# { u'ab': { 3: Decimal('-226423220.1'),
# 4: [ u'fHWWOfgHFukxFmrjAtdX',
# -54316988.3108079,
# u'ZrgkpIDhJHcLZPxOPYuE'],
# 5: { 3: u'PNxqEaGqSXNMhkxPuyTb',
# 4: 7375,
# 5: [ u'ptaylor@hotmail.com',
# Decimal('39536643.6')]}},
# u'exercitationem': { 0: u'http://phillips.com/',
# 1: [ u'aaronreilly@burke.com',
# u'CAwGFpnNfBoFJOKFmfLz',
# 7154],
# 2: { 0: 1976,
# 1: u'bharris@yahoo.com',
# 2: [u'laTLrRbOErXfZtzvKbBa', 7143]}},
# u'ipsa': { 9: datetime.datetime(1977, 4, 11, 15, 28, 12),
# 10: [ -412049.7066,
# u'bbrown@gmail.com',
# u'lowejose@richardson-hinton.com'],
# 11: { 9: u'jennifersanders@reid.org',
# 10: u'donnacaldwell@yahoo.com',
# 11: [ u'GqUkpUqWKbMvDTvfrzby',
# u'KBNeFhZdujkdShJLGgPP']}},
# u'labore': { 6: u'VaPHqbOqbzRMbjpRNGKF',
# 7: [ Decimal('-8.66250388886E+13'),
# Decimal('-389.852'),
# 6733],
# 8: { 6: u'UlAdghpMjtFWEtidSNeA',
# 7: Decimal('3.44286652848E+12'),
# 8: [u'qijWffPZCLwldqdratgY', 3689]}},
# u'mollitia': { 7: datetime.datetime(2008, 12, 24, 6, 23, 40),
# 8: [ 7697508537.77,
# u'iandaniel@lewis.com',
# u'WBaQPrUbWYoaYLnflSnG'],
# 9: { 7: -18.8,
# 8: u'oNCqeXcjuOPYJIjShdoY',
# 9: [ u'hwEtceqUyseSLCeWioNL',
# u'https://www.chambers.info/']}},
# u'omnis': { 5: 4521,
# 6: [ u'austin48@morris-green.net',
# u'oIRxCNRAhYHiarqIJtts',
# u'DIMfBHdRXSARToyAvdtw'],
# 7: { 5: u'KtDcTzEocLHNPUzwHRpO',
# 6: 8678,
# 7: [ 802157531500.3,
# datetime.datetime(1977, 9, 17, 21, 57, 30)]}},
# u'repudiandae': { 8: u'ZQPwYMEbwiMjwAQmVUzK',
# 9: [ u'https://walters-gardner.biz/',
# -227124062932.0,
# u'nqMYIhYMbIbRGjxcOZdO'],
# 10: { 8: datetime.datetime(1990, 11, 25, 4, 1, 8),
# 9: 6474,
# 10: [ u'dCWYCxQLKXYcQYfrUZrg',
# u'http://www.harrison.net/wp-content/category/main/post/']}},
# u'vero': { 1: 6514,
# 2: [ u'xZYHoECNZTOSbJIyeGeg',
# u'RAEiQLKlcwlKEXtjgiQt',
# 2334],
# 3: { 1: datetime.datetime(1971, 12, 31, 14, 24, 42),
# 2: u'vYsUZdDHUYxDSufSsZdD',
# 3: [u'BsChkIbgguiKZaIyVwwE', 7687]}},
# u'voluptatibus': { 4: u'martinezheather@yahoo.com',
# 5: [ u'SeBEcPWatIICrsgySWiW',
# u'https://booth.com/terms.html',
# datetime.datetime(1981, 12, 12, 11, 1, 54)],
# 6: { 4: 7884,
# 5: 5984,
# 6: [0.87031, u'xcjvdKzDoJclBxEMWXAO']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# 15830.542
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('5318.23745731')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'CWVnaheygPCOtHgTFPZq',
# u'JvyawifjHEGFIKlALUuj',
# 2955,
# u'yyoafNpWbsjIHaXZzWTm',
# u'SxrRkQcLlqEHVUPnUenc',
# Decimal('-622072131239'),
# datetime.datetime(2001, 1, 24, 5, 1, 37),
# 7878,
# 1876,
# u'YVCWlfYdmOlaJRHGJOhe',
# u'UAPDFNnORPgqGxAfflYp',
# u'RUbElvGXGOpEkMHoNRLS',
# u'rSqLayOHQUfAenPdAYna']
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( datetime.datetime(2015, 7, 2, 22, 57, 11),
# u'XxFKdPTzvuSZPBTwoBzT',
# u'CsaJvPlMAVVipzpeVekc',
# u'fkodxHAiDkvCeJpinXTW',
# datetime.datetime(1998, 12, 19, 19, 8, 49),
# Decimal('55368.273'),
# u'NguEznpgYJrjPLtiyyzh',
# u'HCJbVzggLMxjGNXHfjrv',
# u'TuFrtnhDfMaaHUbtjoAW',
# datetime.datetime(1975, 11, 23, 20, 35),
# Decimal('655479.0'),
# u'stevencollins@rios-richardson.info',
# 187,
# u'UjXoSxSkaGExvRbSDjLO')
fake.pybool()
# True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([datetime.datetime(1976, 3, 16, 23, 4, 57), u'AlrbSGQWjnVKcsfMuixv', Decimal('8299526.78987'), 7911, u'tRjLIqPFNYhXsPFEOPzE', u'CylbdRslmGnYvhKeJQkl', u'BjgPvHpoNLhpmGOqcVGb', u'http://daniels.biz/', 8152, Decimal('369442.908685')])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'asperiores': datetime.datetime(1987, 3, 15, 3, 33, 12),
# u'error': u'rKnxsVtkKsAIfbxrKjEE',
# u'labore': 641369340325.9,
# u'nam': u'http://mcneil.biz/',
# u'nisi': u'cxnJODLOjSsLFXCXWFgC',
# u'nobis': Decimal('-3.69135800428E+12'),
# u'perferendis': u'https://www.terry.com/privacy.php',
# u'repudiandae': u'BKDCTzqqJCNDLAwlvLhQ'}
fake.pyint()
# 8536
faker.providers.ssn
¶
fake.ssn(taxpayer_identification_number_type="SSN")
# u'634-88-0979'
fake.ein()
# u'26-0469657'
fake.itin()
# u'970-74-8570'
faker.providers.user_agent
¶
fake.mac_processor()
# u'PPC'
fake.firefox()
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_10_2; rv:1.9.6.20) Gecko/2013-12-04 12:18:48 Firefox/7.0'
fake.linux_platform_token()
# u'X11; Linux i686'
fake.opera()
# u'Opera/9.50.(Windows NT 6.1; zu-ZA) Presto/2.9.164 Version/11.00'
fake.windows_platform_token()
# u'Windows NT 6.0'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/3.0)'
fake.user_agent()
# u'Opera/9.83.(X11; Linux i686; ml-IN) Presto/2.9.180 Version/10.00'
fake.linux_processor()
# u'i686'
fake.chrome(version_from=13, version_to=63, build_from=800, build_to=899)
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_10_7) AppleWebKit/5331 (KHTML, like Gecko) Chrome/37.0.855.0 Safari/5331'
fake.mac_platform_token()
# u'Macintosh; Intel Mac OS X 10_10_7'
fake.safari()
# u'Mozilla/5.0 (Windows; U; Windows NT 4.0) AppleWebKit/535.47.3 (KHTML, like Gecko) Version/4.0.2 Safari/535.47.3'