firecrawl 1.6.3__py3-none-any.whl → 1.6.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of firecrawl might be problematic. Click here for more details.

firecrawl/__init__.py CHANGED
@@ -13,7 +13,7 @@ import os
13
13
 
14
14
  from .firecrawl import FirecrawlApp # noqa
15
15
 
16
- __version__ = "1.6.3"
16
+ __version__ = "1.6.7"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
firecrawl/firecrawl.py CHANGED
@@ -27,7 +27,7 @@ class FirecrawlApp:
27
27
  Parameters for the extract operation.
28
28
  """
29
29
  prompt: str
30
- schema: Optional[Any] = None
30
+ schema_: Optional[Any] = pydantic.Field(None, alias='schema')
31
31
  system_prompt: Optional[str] = None
32
32
  allow_external_links: Optional[bool] = False
33
33
 
@@ -704,15 +704,15 @@ class CrawlWatcher:
704
704
  async def _handle_message(self, msg: Dict[str, Any]):
705
705
  if msg['type'] == 'done':
706
706
  self.status = 'completed'
707
- self.dispatch_event('done', {'status': self.status, 'data': self.data})
707
+ self.dispatch_event('done', {'status': self.status, 'data': self.data, 'id': self.id})
708
708
  elif msg['type'] == 'error':
709
709
  self.status = 'failed'
710
- self.dispatch_event('error', {'status': self.status, 'data': self.data, 'error': msg['error']})
710
+ self.dispatch_event('error', {'status': self.status, 'data': self.data, 'error': msg['error'], 'id': self.id})
711
711
  elif msg['type'] == 'catchup':
712
712
  self.status = msg['data']['status']
713
713
  self.data.extend(msg['data'].get('data', []))
714
714
  for doc in self.data:
715
- self.dispatch_event('document', doc)
715
+ self.dispatch_event('document', {'data': doc, 'id': self.id})
716
716
  elif msg['type'] == 'document':
717
717
  self.data.append(msg['data'])
718
- self.dispatch_event('document', msg['data'])
718
+ self.dispatch_event('document', {'data': msg['data'], 'id': self.id})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.6.3
3
+ Version: 1.6.7
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
@@ -0,0 +1,11 @@
1
+ firecrawl/__init__.py,sha256=XxugNyfqLGP3cog7PVZBbqgojPEDMpWDnGwTFYSUlkA,2543
2
+ firecrawl/firecrawl.py,sha256=OGBmoeX46EBeq58dNFzXe0SUkDOPQqW2ZRcy8WG1M4U,30319
3
+ firecrawl/__tests__/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ firecrawl/__tests__/e2e_withAuth/test.py,sha256=L-umFR3WyrJso1EwqkxjbTMr5AEI4t5zDfhQcCzitOI,7911
5
+ firecrawl/__tests__/v1/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ firecrawl/__tests__/v1/e2e_withAuth/test.py,sha256=KQMmGAtJAIafja6EGtJ-W9162w2Hm6PNjqKl3_RQXLA,16456
7
+ firecrawl-1.6.7.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
8
+ firecrawl-1.6.7.dist-info/METADATA,sha256=RtL-V8EuJnosL7no5j76W-DXG1tA8suNL0PAySz5P3A,10596
9
+ firecrawl-1.6.7.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
+ firecrawl-1.6.7.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
11
+ firecrawl-1.6.7.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- firecrawl/__init__.py,sha256=zFTJeLbp4Pd4eerHhmdmlo6zzHg1WRQUlwNo6TFPpiE,2543
2
- firecrawl/firecrawl.py,sha256=jtOZwfIFrX-t0KuRHZMQoyl5x5HrrP0li_ANWj0yuW8,30206
3
- firecrawl/__tests__/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- firecrawl/__tests__/e2e_withAuth/test.py,sha256=L-umFR3WyrJso1EwqkxjbTMr5AEI4t5zDfhQcCzitOI,7911
5
- firecrawl/__tests__/v1/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- firecrawl/__tests__/v1/e2e_withAuth/test.py,sha256=KQMmGAtJAIafja6EGtJ-W9162w2Hm6PNjqKl3_RQXLA,16456
7
- firecrawl-1.6.3.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
8
- firecrawl-1.6.3.dist-info/METADATA,sha256=85OPivPPb0R2tbfQrwpzfC1rPKpl8971CjEIJ4ko52o,10596
9
- firecrawl-1.6.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
- firecrawl-1.6.3.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
11
- firecrawl-1.6.3.dist-info/RECORD,,