Format: application/x-python-code
1 o
2
3 D'h� � @ s d dl Z dd� ZdS )� Nc C s� dt �dd�� dt �dd�� dt �dd�� �} dt �dd�� dt �d d
4 �� �}dt �dd�� dt �dd
5 �� �}dt �dd�� dt �dd�� dt �dd�� �}| � d|� d|� d|� �S )a�
6 Generates a random user agent string mimicking the format of various software versions.
7
8 The user agent string is composed of:
9 - Lynx version: Lynx/x.y.z where x is 2-3, y is 8-9, and z is 0-2
10 - libwww version: libwww-FM/x.y where x is 2-3 and y is 13-15
11 - SSL-MM version: SSL-MM/x.y where x is 1-2 and y is 3-5
12 - OpenSSL version: OpenSSL/x.y.z where x is 1-3, y is 0-4, and z is 0-9
13
14 Returns:
15 str: A randomly generated user agent string.
16 zLynx/� � �.� � r z
17 libwww-FM/�
18 � zSSL-MM/� � zOpenSSL/� � )�random�randint)Zlynx_versionZlibwww_versionZssl_mm_version�openssl_version� r �NC:\Users\shubh\Videos\agent\nova\Lib\site-packages\googlesearch/user_agents.py�
19 get_useragent s
20 .
21 .r )r
22 r r r r r �<module> s