SuccessfulCrab commited on
Commit
1d40e2c
·
verified ·
1 Parent(s): 2aedefe

Update firecrawler.py

Browse files
Files changed (1) hide show
  1. firecrawler.py +3 -8
firecrawler.py CHANGED
@@ -28,14 +28,7 @@ class FireCrawlTool(Tool):
28
 
29
  # Initialize the FirecrawlApp with the API key
30
  app = FirecrawlApp(api_key = api_key)
31
-
32
- # Convert the websites string to a list
33
- # Split by commas, newlines, or spaces and strip whitespace
34
- #websites_list = [
35
- #website.strip()
36
- #for website in websites.replace(',', ' ').replace('\n', ' ').split()
37
- #if website.strip()
38
- #]
39
 
40
  # Scrape a website:
41
  scrape_result = app.scrape_url(website,
@@ -45,6 +38,8 @@ class FireCrawlTool(Tool):
45
  }
46
  }
47
  )
 
 
48
 
49
 
50
  return scrape_result
 
28
 
29
  # Initialize the FirecrawlApp with the API key
30
  app = FirecrawlApp(api_key = api_key)
31
+
 
 
 
 
 
 
 
32
 
33
  # Scrape a website:
34
  scrape_result = app.scrape_url(website,
 
38
  }
39
  }
40
  )
41
+
42
+ scrape_result = scrape_result['markdown'][:7000]
43
 
44
 
45
  return scrape_result