Added better selectors for testing
This commit is contained in:
parent
f82dfbe371
commit
4058d63036
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ async def test_cron_web_scraper():
|
|||
await cognee.prune.prune_system(metadata=True)
|
||||
urls = ["https://quotes.toscrape.com/", "https://books.toscrape.com/"]
|
||||
extraction_rules = {
|
||||
"quotes": {"selector": ".quote span.text", "all": True},
|
||||
"authors": {"selector": ".quote small", "all": True},
|
||||
"quotes": ".quote .text",
|
||||
"authors": ".quote .author",
|
||||
"titles": "article.product_pod h3 a",
|
||||
"prices": "article.product_pod p.price_color",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue