Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from scrapegraphai.graphs import SmartScraperGraph
|
|
| 6 |
import nest_asyncio
|
| 7 |
import os
|
| 8 |
import subprocess
|
|
|
|
| 9 |
|
| 10 |
# Ensure Playwright installs required browsers and dependencies
|
| 11 |
subprocess.run(["playwright", "install"])
|
|
@@ -38,7 +39,7 @@ def get_data(url):
|
|
| 38 |
"""
|
| 39 |
|
| 40 |
smart_scraper_graph = SmartScraperGraph(
|
| 41 |
-
prompt="List me all grants or funds, the organisations funding them, The value of the grant, the due date, eligible countries and eligibility
|
| 42 |
source=url,
|
| 43 |
config=graph_config
|
| 44 |
)
|
|
|
|
| 6 |
import nest_asyncio
|
| 7 |
import os
|
| 8 |
import subprocess
|
| 9 |
+
import io
|
| 10 |
|
| 11 |
# Ensure Playwright installs required browsers and dependencies
|
| 12 |
subprocess.run(["playwright", "install"])
|
|
|
|
| 39 |
"""
|
| 40 |
|
| 41 |
smart_scraper_graph = SmartScraperGraph(
|
| 42 |
+
prompt="List me all grants or funds, the organisations funding them, The value of the grant as an integer, the due date, eligible countries and eligibility criteria for applicants.",
|
| 43 |
source=url,
|
| 44 |
config=graph_config
|
| 45 |
)
|