docs: fix parameter typo in scrapfly loader docs (#24307)

Fixed wrong parameter typo in
[ScrapflyLoader](https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/document_loaders/scrapfly.py)
docs, where `ignore_scrape_failures` is used instead of
`continue_on_failure`.

- Description: Fix wrong param typo in ScrapflyLoader docs.
This commit is contained in:
Mazen Ramadan 2024-07-16 17:48:13 +03:00 committed by GitHub
parent 5fcf2ef7ca
commit 0c1889c713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@
"scrapfly_loader = ScrapflyLoader(\n", "scrapfly_loader = ScrapflyLoader(\n",
" [\"https://web-scraping.dev/products\"],\n", " [\"https://web-scraping.dev/products\"],\n",
" api_key=\"Your ScrapFly API key\", # Get your API key from https://www.scrapfly.io/\n", " api_key=\"Your ScrapFly API key\", # Get your API key from https://www.scrapfly.io/\n",
" ignore_scrape_failures=True, # Ignore unprocessable web pages and log their exceptions\n", " continue_on_failure=True, # Ignore unprocessable web pages and log their exceptions\n",
")\n", ")\n",
"\n", "\n",
"# Load documents from URLs as markdown\n", "# Load documents from URLs as markdown\n",
@ -72,7 +72,7 @@
"scrapfly_loader = ScrapflyLoader(\n", "scrapfly_loader = ScrapflyLoader(\n",
" [\"https://web-scraping.dev/products\"],\n", " [\"https://web-scraping.dev/products\"],\n",
" api_key=\"Your ScrapFly API key\", # Get your API key from https://www.scrapfly.io/\n", " api_key=\"Your ScrapFly API key\", # Get your API key from https://www.scrapfly.io/\n",
" ignore_scrape_failures=True, # Ignore unprocessable web pages and log their exceptions\n", " continue_on_failure=True, # Ignore unprocessable web pages and log their exceptions\n",
" scrape_config=scrapfly_scrape_config, # Pass the scrape_config object\n", " scrape_config=scrapfly_scrape_config, # Pass the scrape_config object\n",
" scrape_format=\"markdown\", # The scrape result format, either `markdown`(default) or `text`\n", " scrape_format=\"markdown\", # The scrape result format, either `markdown`(default) or `text`\n",
")\n", ")\n",