Install
Auto Download
This approach simplifies usage as it automatically detects your OS and downloads the appropriate version of the library. To use it:
>>> import tls_requests
>>> r = tls_requests.get('https://httpbin.org/get')
!!! note:
The library takes care of downloading necessary files and stores them in the tls_requests/bin
directory.
Manual Download
If you want more control, such as selecting a specific version of the library, you can use the manual method:
>>> from tls_requests.models.libraries import TLSLibrary
>>> TLSLibrary.download('1.7.10')
This method is useful if you need to ensure compatibility with specific library versions.
Notes
- Dependencies: Ensure Python is installed and configured correctly in your environment.
- Custom Directory: If needed, the library’s downloaded binaries can be relocated manually to suit specific project structures.
- Reference: TLS Client GitHub Releases provides details about available versions and updates.