Refactor content scrapping strategy and improve error handling
This commit is contained in:
@@ -187,7 +187,7 @@ class AsyncWebCrawler:
|
||||
t1 = time.time()
|
||||
scrapping_strategy = WebScrappingStrategy()
|
||||
# result = await scrapping_strategy.ascrap(
|
||||
result = await scrapping_strategy.scrap(
|
||||
result = scrapping_strategy.scrap(
|
||||
url,
|
||||
html,
|
||||
word_count_threshold=word_count_threshold,
|
||||
|
||||
Reference in New Issue
Block a user