add robots txt detection

This commit is contained in:
2025-10-09 15:26:36 +08:00
parent 10b89aee17
commit d660f25fb1
8 changed files with 1268 additions and 16 deletions

View File

@@ -4,13 +4,21 @@ mod schema;
mod types;
mod config;
mod helpers;
mod crawler;
mod constants;
use color_eyre::Result;
use reqwest::Url;
use tokio;
use crate::crawler::Crawler;
#[tokio::main]
async fn main() -> Result<()> {
color_eyre::install()?;
let crawler = Crawler::new("dlsite", Url::parse("https://www.dlsite.com/")?).await;
let terminal = ratatui::init();
let app = app::App::new();
let result = app.run(terminal).await;