Files
nuhodds_fi4/resources/python-scraper/test_curl_cffi.py
T
2026-10-04 15:25:03 +02:00

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}')