Skip to content

nukr/poe-item-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path of Exile Item Text Parser

This Rust library provides a parser for extracting structured data from Path of Exile (PoE) Item Text descriptions, typically copied directly from the game with Ctrl + C (or Ctrl + Alt + C wich also includes modifier types, tags & names).

It currently (hopefully) supports every equipable item. Maps, Tattoos, Idols etc. will be added later.

Usage Example

use poe_item_parser::PoeItem;

fn main() {
    let item_text = r#"Item Class: Belts
Rarity: Magic
Rustic Sash of the Whelpling
--------
Item Level: 14
--------
14% increased Global Physical Damage (implicit)
--------
+8% to Fire Resistance
"#;

    match PoeItem::parse(item_text) {
        Ok(item) => {
            println!("{:#?}", item);
        }
        Err(e) => {
            eprintln!("Error parsing item: {}", e);
        }
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%