Format: application/x-python-code
⬇ Download File (1.1 KB)
   1  o
   2  
   3  D'h��@sddlZdd�ZdS)�Nc	Cs�dt�dd��dt�dd��dt�dd���}dt�dd��dt�d	d
   4  ���}dt�dd��dt�dd
   5  ���}dt�dd��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/���.��	rz
  17  libwww-FM/�
  18  �zSSL-MM/��zOpenSSL/�� )�random�randint)Zlynx_versionZlibwww_versionZssl_mm_version�openssl_version�r�NC:\Users\shubh\Videos\agent\nova\Lib\site-packages\googlesearch/user_agents.py�
  19  get_useragents
  20  .
  21    .r)r
  22  rrrrr�<module>s