This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check for jq and install if not found | |
| if ! command -v jq &> /dev/null | |
| then | |
| echo "jq could not be found, attempting to install." | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release | |
| if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then | |
| sudo apt-get update && sudo apt-get install -y jq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check for jq and install if not found | |
| if ! command -v jq &> /dev/null | |
| then | |
| echo "jq could not be found, attempting to install." | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release | |
| if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then | |
| sudo apt-get update && sudo apt-get install -y jq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| from urllib.parse import urlparse | |
| from pathlib import Path | |
| from crawl4ai import AsyncWebCrawler, CrawlerRunConfig | |
| from crawl4ai.deep_crawling import BestFirstCrawlingStrategy | |
| from crawl4ai.deep_crawling.scorers import KeywordRelevanceScorer | |
| from crawl4ai.markdown_generation_strategy import DefaultMarkdownGenerator | |
| from crawl4ai.deep_crawling.filters import FilterChain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to combine all markdown files in each folder into one file per folder | |
| # Usage: ./combine_markdown.sh [base_directory] | |
| BASE_DIR="${1:-crawled_docs}" | |
| OUTPUT_DIR="combined_docs" | |
| if [ ! -d "$BASE_DIR" ]; then | |
| echo "Error: Directory $BASE_DIR does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check for jq and install if not found | |
| if ! command -v jq &> /dev/null | |
| then | |
| echo "jq could not be found, attempting to install." | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release | |
| if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then | |
| sudo apt-get update && sudo apt-get install -y jq |
OlderNewer