{"id":23686026,"url":"https://github.com/vivyir/trackermeta","last_synced_at":"2025-09-02T12:32:52.891Z","repository":{"id":57670496,"uuid":"381731913","full_name":"vivyir/trackermeta","owner":"vivyir","description":"small library to parse module metadata from the website modarchive","archived":false,"fork":false,"pushed_at":"2024-03-11T21:07:10.000Z","size":101,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-20T05:26:17.365Z","etag":null,"topics":["library","rust","scraper","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vivyir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-30T14:34:12.000Z","updated_at":"2024-03-17T03:04:25.000Z","dependencies_parsed_at":"2022-09-26T20:41:06.496Z","dependency_job_id":null,"html_url":"https://github.com/vivyir/trackermeta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivyir%2Ftrackermeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivyir%2Ftrackermeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivyir%2Ftrackermeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivyir%2Ftrackermeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vivyir","download_url":"https://codeload.github.com/vivyir/trackermeta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231785225,"owners_count":18426289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","rust","scraper","webscraping"],"created_at":"2024-12-29T21:16:57.549Z","updated_at":"2024-12-29T21:16:58.168Z","avatar_url":"https://github.com/vivyir.png","language":"Rust","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=28NK9DJQRRNGJ"],"categories":[],"sub_categories":[],"readme":"# Trackermeta\n\n[![license](https://img.shields.io/github/license/vivyir/trackermeta)](https://github.com/vivyir/trackermeta/blob/master/LICENSE)\n[![Crates.io](https://img.shields.io/crates/v/trackermeta)](https://crates.io/crates/trackermeta)\n![Crates.io](https://img.shields.io/crates/d/trackermeta)\n\nThis is a simple library crate that helps with scraping metadata from the website called [Mod Archive](https://modarchive.org).\nIt works by parsing the returned HTML and providing the data programmatically, if you have an API key from the Mod Archive please use the XML fork of this library ([Modark](https://github.com/RepellantMold/modark)) by RepellantMold.\n\nPlease be sure to donate to [the Mod Archive's hosting fund](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=28NK9DJQRRNGJ) if you use this for any significant amount of time, as scraping data is sure to put strain on their servers and every cent counts!\u003c3\n\n⚠️ This library uses the [`ureq`](https://crates.io/crates/ureq) crate for web requests and isn't back-end agnostic nor asynchronous. Even though `ureq` is a pretty lightweight library if you find a need for those please make an issue!\n\n## Examples\n\nIn the following example the program will search for the file name provided by the user and display the data for the closest match.\n\n```rust\nuse trackermeta::ModInfo;\n\nfn main() {\n    let args: Vec\u003cString\u003e = std::env::args().collect();\n    match args.get(1).unwrap_or(\u0026\"\".into()).as_ref() {\n        \"get\" =\u003e {\n            // Returns the first 40 search results, here we'll pick the closest match, if none exist this will panic!\n            let mod_id = ModInfo::resolve_filename(\n                args.get(2)\n                    .expect(\"No filename provided as second argument.\"),\n            )\n            .unwrap()[0].id;\n\n            let mod_info = ModInfo::get(mod_id).unwrap();\n\n            println!(\"{:#?}\", mod_info);\n            println!(\"Download link: {}\", mod_info.get_download_link());\n        }\n        _ =\u003e println!(\"Usage: trackermeta get \u003cfilename\u003e\"),\n    }\n}\n```\n\nCheck out the [examples](examples) directory on the github repo for all examples using the library!\n\n## Roadmap\n- Improve code ergonomics and refactor idiomatically\n- Better error handling\n- Add the ability to traverse paginated searches\n- Add more search functions\n\n## License\nThis project is licenced under the [Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivyir%2Ftrackermeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvivyir%2Ftrackermeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivyir%2Ftrackermeta/lists"}