rustysozluk 0.1.0

Eksi Sozluk API wrapper
Documentation

RustySozluk

Description

RustySozluk is a Rust library for fetching user entries and thread entries from eksisozluk.com.

Features

  • Fetch user entries by username
  • Fetch entries in a particular thread
  • Asynchronous API using Rust's async/await

Installation

Add rustysozluk to your Cargo.toml:

[dependencies]

rustysozluk = "0.1.0"

Usage

use rustysozluk::fetch_user;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let entries = fetch_user("morgomir", 4).await?;
    println!("Extracted {} entries:", entries.len());
    for entry in entries.iter() {
        println!("{}", entry);
    }
    Ok(())
}

Contributing

Any kind of contribution is welcome! Feel free to open an issue.