Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick: reverting ssl changes to py sdk

Nicolas87baa23197a7
diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.py
index 1306587d6..370628f36 100644
--- a/apps/python-sdk/firecrawl/__init__.py
+++ b/apps/python-sdk/firecrawl/__init__.py
@@ -13,7 +13,7 @@ import os
from .firecrawl import FirecrawlApp, AsyncFirecrawlApp, JsonConfig, ScrapeOptions, ChangeTrackingOptions # noqa
-__version__ = "2.14.0"
+__version__ = "2.15.0"
# Define the logger for the Firecrawl project
logger: logging.Logger = logging.getLogger("firecrawl")
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.py
index 08043ae04..062ed3302 100644
--- a/apps/python-sdk/firecrawl/firecrawl.py
+++ b/apps/python-sdk/firecrawl/firecrawl.py
@@ -23,8 +23,6 @@ import websockets
import aiohttp
import asyncio
from pydantic import Field
-import ssl
-import certifi
# Suppress Pydantic warnings about attribute shadowing
warnings.filterwarnings("ignore", message="Field name \"json\" in \"FirecrawlDocument\" shadows an attribute in parent \"BaseModel\"")
@@ -2769,8 +2767,7 @@ class AsyncFirecrawlApp(FirecrawlApp):
aiohttp.ClientError: If the request fails after all retries.
Exception: If max retries are exceeded or other errors occur.
"""
- ssl_context = ssl.create_default_context(cafile=certifi.where())
- async with aiohttp.ClientSession(ssl=ssl_context) as session:
+ async with aiohttp.ClientSession() as session:
for attempt in range(retries):
try:
async with session.request(
diff --git a/apps/python-sdk/requirements.txt b/apps/python-sdk/requirements.txt
index e2d8502de..360d9e764 100644
--- a/apps/python-sdk/requirements.txt
+++ b/apps/python-sdk/requirements.txt
@@ -4,5 +4,4 @@ python-dotenv
websockets
nest-asyncio
pydantic
-aiohttp
-certifi
\ No newline at end of file
+aiohttp
\ No newline at end of file
diff --git a/apps/python-sdk/setup.py b/apps/python-sdk/setup.py
index 8bc9c505a..1fb31664e 100644
--- a/apps/python-sdk/setup.py
+++ b/apps/python-sdk/setup.py
@@ -34,8 +34,7 @@ setup(
'asyncio',
'nest-asyncio',
'pydantic',
- 'aiohttp',
- 'certifi'
+ 'aiohttp'
],
python_requires=">=3.8",
classifiers=[