12 lines
332 B
Python
Executable File
12 lines
332 B
Python
Executable File
|
|
from curl_cffi import requests
|
|
|
|
try:
|
|
response = requests.get('https://httpbin.org/get')
|
|
if response.status_code == 200:
|
|
print('Yay! curl_cffi installation is successful!')
|
|
else:
|
|
print('Something went wrong with the request. Try again!')
|
|
except Exception as e:
|
|
print(f'Oops! An error occurred: {e}')
|