From 0532fabda3b1081b62b6f82ef42d90d4365b49c8 Mon Sep 17 00:00:00 2001 From: altunenes Date: Thu, 8 Feb 2024 14:06:05 +0300 Subject: [PATCH] update after court decision --- README.md | 2 +- examples/exporter.rs | 2 +- examples/from_title.rs | 2 +- examples/sentiment_title.rs | 2 +- src/parser.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6e8ae57..21d3fc4 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ use rustysozluk::analyzer::analyzer::analyze_sentiment; #[tokio::main] async fn main() -> Result<(), Box> { - let title = "https://eksisozluk111.com/rust-programlama-dili--5575227"; + let title = "https://eksisozluk.com/rust-programlama-dili--5575227"; let number_of_entries = 4; let entries = fetch_title(title, number_of_entries).await?; analyze_sentiment(entries)?; diff --git a/examples/exporter.rs b/examples/exporter.rs index 2cfeb11..19e728d 100644 --- a/examples/exporter.rs +++ b/examples/exporter.rs @@ -6,7 +6,7 @@ use rustysozluk::fetch_title; #[tokio::main] async fn main() -> Result<(), Box> { - let entries = fetch_title("https://eksisozluk111.com/rust-programlama-dili--5575227", 4).await?; + let entries = fetch_title("https://eksisozluk.com/rust-programlama-dili--5575227", 4).await?; println!("Extracted {} entries:", entries.len()); export_to_csv(entries, "entries.csv")?; //export_to_json(entries, "entries.csv")?; if you want to export to json diff --git a/examples/from_title.rs b/examples/from_title.rs index 9c1e14f..9556d64 100644 --- a/examples/from_title.rs +++ b/examples/from_title.rs @@ -5,7 +5,7 @@ use rustysozluk::fetch_title; #[tokio::main] async fn main() -> Result<(), Box> { - let title = "https://eksisozluk111.com/rust-programlama-dili--5575227"; // title URL //başlık URL'si + let title = "https://eksisozluk.com/rust-programlama-dili--5575227"; // title URL //başlık URL'si let number_of_entries = 4; // number of entries to fetch //alınacak girdi sayısı let entries = fetch_title(title, number_of_entries).await?; println!("Extracted {} entries:", entries.len()); diff --git a/examples/sentiment_title.rs b/examples/sentiment_title.rs index 3815635..dee1ddc 100644 --- a/examples/sentiment_title.rs +++ b/examples/sentiment_title.rs @@ -6,7 +6,7 @@ use rustysozluk::analyzer::analyzer::analyze_sentiment; #[tokio::main] async fn main() -> Result<(), Box> { - let title = "https://eksisozluk111.com/rust-programlama-dili--5575227"; // title URL //başlık URL'si + let title = "https://eksisozluk.com/rust-programlama-dili--5575227"; // title URL //başlık URL'si let number_of_entries = 4; // number of entries to fetch //alınacak girdi sayısı let entries = fetch_title(title, number_of_entries).await?; analyze_sentiment(entries)?; diff --git a/src/parser.rs b/src/parser.rs index 13cf31e..21ea166 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -124,7 +124,7 @@ pub async fn fetch_user(username: &str, limit: usize) -> Result, Rust let mut all_entries = Vec::new(); let mut current_page = 1; while all_entries.len() < limit { - let user_url = format!("https://eksisozluk111.com/son-entryleri?nick={}&p={}", username, current_page); + let user_url = format!("https://eksisozluk.com/son-entryleri?nick={}&p={}", username, current_page); let client = reqwest::Client::new(); let response = client.get(&user_url) .header("X-Requested-With", "XMLHttpRequest")