Skip to content

Commit

Permalink
update after court decision
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed Feb 8, 2024
1 parent 52cf611 commit 0532fab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use rustysozluk::analyzer::analyzer::analyze_sentiment;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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)?;
Expand Down
2 changes: 1 addition & 1 deletion examples/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use rustysozluk::fetch_title;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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

Expand Down
2 changes: 1 addition & 1 deletion examples/from_title.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rustysozluk::fetch_title;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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());
Expand Down
2 changes: 1 addition & 1 deletion examples/sentiment_title.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use rustysozluk::analyzer::analyzer::analyze_sentiment;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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)?;
Expand Down
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub async fn fetch_user(username: &str, limit: usize) -> Result<Vec<Entry>, 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")
Expand Down

0 comments on commit 0532fab

Please sign in to comment.