firecrawl 1.13.1__tar.gz → 1.13.3__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.13.1
3
+ Version: 1.13.3
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
@@ -13,7 +13,7 @@ import os
13
13
 
14
14
  from .firecrawl import FirecrawlApp # noqa
15
15
 
16
- __version__ = "1.13.1"
16
+ __version__ = "1.13.3"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
@@ -675,6 +675,7 @@ class FirecrawlApp:
675
675
  'allowExternalLinks': params.get('allow_external_links', params.get('allowExternalLinks', False)),
676
676
  'enableWebSearch': params.get('enable_web_search', params.get('enableWebSearch', False)),
677
677
  'showSources': params.get('show_sources', params.get('showSources', False)),
678
+ 'systemPrompt': params.get('system_prompt', params.get('systemPrompt', None)),
678
679
  'schema': schema,
679
680
  'origin': 'api-sdk'
680
681
  }
@@ -1128,16 +1129,23 @@ class FirecrawlApp:
1128
1129
  return response
1129
1130
 
1130
1131
  job_id = response['id']
1132
+ last_activity_count = 0
1133
+ last_source_count = 0
1134
+
1131
1135
  while True:
1132
1136
  status = self.check_deep_research_status(job_id)
1133
1137
 
1134
1138
  if on_activity and 'activities' in status:
1135
- for activity in status['activities']:
1139
+ new_activities = status['activities'][last_activity_count:]
1140
+ for activity in new_activities:
1136
1141
  on_activity(activity)
1142
+ last_activity_count = len(status['activities'])
1137
1143
 
1138
1144
  if on_source and 'sources' in status:
1139
- for source in status['sources']:
1145
+ new_sources = status['sources'][last_source_count:]
1146
+ for source in new_sources:
1140
1147
  on_source(source)
1148
+ last_source_count = len(status['sources'])
1141
1149
 
1142
1150
  if status['status'] == 'completed':
1143
1151
  return status
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.13.1
3
+ Version: 1.13.3
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
File without changes
File without changes
File without changes
File without changes
File without changes