NightFury2710 commited on
Commit
c4aea89
·
1 Parent(s): 85f58d9

update api handle 3

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -23,7 +23,6 @@ class CrawlRequest(BaseModel):
23
  cache_mode: str = "ENABLED"
24
  excluded_tags: list[str] = ["nav", "footer", "aside", "header", "script", "style"]
25
  remove_overlay_elements: bool = True
26
- timeout: int = 30 # Timeout in seconds
27
 
28
  class Article(BaseModel):
29
  title: str
@@ -174,8 +173,6 @@ async def crawl_url(request: CrawlRequest):
174
  cache_mode=cache_mode,
175
  excluded_tags=request.excluded_tags,
176
  remove_overlay_elements=request.remove_overlay_elements,
177
- timeout=request.timeout,
178
- # Core features from documentation
179
  remove_ads=True,
180
  extract_text=True,
181
  extract_links=True,
 
23
  cache_mode: str = "ENABLED"
24
  excluded_tags: list[str] = ["nav", "footer", "aside", "header", "script", "style"]
25
  remove_overlay_elements: bool = True
 
26
 
27
  class Article(BaseModel):
28
  title: str
 
173
  cache_mode=cache_mode,
174
  excluded_tags=request.excluded_tags,
175
  remove_overlay_elements=request.remove_overlay_elements,
 
 
176
  remove_ads=True,
177
  extract_text=True,
178
  extract_links=True,