firecrawl-py 2.7.1__tar.gz → 2.8.0__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-py might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl-py
3
- Version: 2.7.1
3
+ Version: 2.8.0
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, AsyncFirecrawlApp, JsonConfig, ScrapeOptions, ChangeTrackingOptions # noqa
15
15
 
16
- __version__ = "2.7.1"
16
+ __version__ = "2.8.0"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
@@ -140,6 +140,7 @@ class ChangeTrackingOptions(pydantic.BaseModel):
140
140
  modes: Optional[List[Literal["git-diff", "json"]]] = None
141
141
  schema: Optional[Any] = None
142
142
  prompt: Optional[str] = None
143
+ tag: Optional[str] = None
143
144
 
144
145
  class ScrapeOptions(pydantic.BaseModel):
145
146
  """Parameters for scraping operations."""
@@ -157,6 +158,8 @@ class ScrapeOptions(pydantic.BaseModel):
157
158
  blockAds: Optional[bool] = None
158
159
  proxy: Optional[Literal["basic", "stealth", "auto"]] = None
159
160
  changeTrackingOptions: Optional[ChangeTrackingOptions] = None
161
+ maxAge: Optional[int] = None
162
+ storeInCache: Optional[bool] = None
160
163
 
161
164
  class WaitAction(pydantic.BaseModel):
162
165
  """Wait action to perform during scraping."""
@@ -292,6 +295,7 @@ class MapParams(pydantic.BaseModel):
292
295
  sitemapOnly: Optional[bool] = None
293
296
  limit: Optional[int] = None
294
297
  timeout: Optional[int] = None
298
+ useIndex: Optional[bool] = None
295
299
 
296
300
  class MapResponse(pydantic.BaseModel):
297
301
  """Response from mapping operations."""
@@ -464,6 +468,8 @@ class FirecrawlApp:
464
468
  json_options: Optional[JsonConfig] = None,
465
469
  actions: Optional[List[Union[WaitAction, ScreenshotAction, ClickAction, WriteAction, PressAction, ScrollAction, ScrapeAction, ExecuteJavascriptAction]]] = None,
466
470
  change_tracking_options: Optional[ChangeTrackingOptions] = None,
471
+ max_age: Optional[int] = None,
472
+ store_in_cache: Optional[bool] = None,
467
473
  **kwargs) -> ScrapeResponse[Any]:
468
474
  """
469
475
  Scrape and extract content from a URL.
@@ -545,6 +551,10 @@ class FirecrawlApp:
545
551
  scrape_params['actions'] = [action if isinstance(action, dict) else action.dict(exclude_none=True) for action in actions]
546
552
  if change_tracking_options:
547
553
  scrape_params['changeTrackingOptions'] = change_tracking_options if isinstance(change_tracking_options, dict) else change_tracking_options.dict(exclude_none=True)
554
+ if max_age is not None:
555
+ scrape_params['maxAge'] = max_age
556
+ if store_in_cache is not None:
557
+ scrape_params['storeInCache'] = store_in_cache
548
558
 
549
559
  scrape_params.update(kwargs)
550
560
 
@@ -1102,6 +1112,7 @@ class FirecrawlApp:
1102
1112
  sitemap_only: Optional[bool] = None,
1103
1113
  limit: Optional[int] = None,
1104
1114
  timeout: Optional[int] = None,
1115
+ use_index: Optional[bool] = None,
1105
1116
  **kwargs) -> MapResponse:
1106
1117
  """
1107
1118
  Map and discover links from a URL.
@@ -1144,7 +1155,9 @@ class FirecrawlApp:
1144
1155
  map_params['limit'] = limit
1145
1156
  if timeout is not None:
1146
1157
  map_params['timeout'] = timeout
1147
-
1158
+ if use_index is not None:
1159
+ map_params['useIndex'] = use_index
1160
+
1148
1161
  # Add any additional kwargs
1149
1162
  map_params.update(kwargs)
1150
1163
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl-py
3
- Version: 2.7.1
3
+ Version: 2.8.0
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