{"id":28565755,"url":"https://github.com/postlight/mercury-rs","last_synced_at":"2025-06-10T14:40:18.154Z","repository":{"id":57638011,"uuid":"108020760","full_name":"postlight/mercury-rs","owner":"postlight","description":"The official Rust client for the Mercury Parser","archived":false,"fork":false,"pushed_at":"2017-10-26T00:26:14.000Z","size":29,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-02T15:44:16.150Z","etag":null,"topics":["async","client","mercury","parser"],"latest_commit_sha":null,"homepage":"https://mercury.postlight.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-23T18:13:52.000Z","updated_at":"2024-11-13T17:17:20.000Z","dependencies_parsed_at":"2022-09-26T20:21:07.334Z","dependency_job_id":null,"html_url":"https://github.com/postlight/mercury-rs","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/postlight%2Fmercury-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postlight%2Fmercury-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postlight%2Fmercury-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postlight%2Fmercury-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postlight","download_url":"https://codeload.github.com/postlight/mercury-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postlight%2Fmercury-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259093957,"owners_count":22804262,"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":["async","client","mercury","parser"],"created_at":"2025-06-10T14:40:17.140Z","updated_at":"2025-06-10T14:40:18.138Z","avatar_url":"https://github.com/postlight.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mercury-rs\n\n[![CircleCI branch](https://img.shields.io/circleci/token/2a269417e742b12343eab366752dbb8d837cb1e8/project/github/postlight/mercury-rs/master.svg?style=flat-square)](https://circleci.com/gh/postlight/mercury-rs/tree/master)\n\nThe official Rust client for the [Mercury Parser](https://mercury.postlight.com/web-parser).\n\nWith just one API request, Mercury takes any web article and returns only the relevant content — headline, author, body text, relevant images and more — free from any clutter. It’s reliable, easy-to-use and free.\n\n* [Documentation](https://docs.rs/mercury)\n* [Homepage](https://mercury.postlight.com)\n* [Examples](./examples)\n\n## Installation\n\nThe examples in this document assume you already have a Mercury Parser API key. If you do not already have one, you can [sign up here](https://mercury.postlight.com/web-parser).\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nfutures = \"0.1\"\nmercury = \"0.1\"\ntokio-core = \"0.1\"\n```\n\nAdd this to your `main.rs`:\n\n```rust\nextern crate futures;\nextern crate mercury;\nextern crate tokio_core;\n```\n\n## Usage\n\n```rust\n// Create a new event loop with tokio.\nlet mut core = Core::new()?;\n\n// Load your API key from the environment.\nlet key = env::var(\"MERCURY_API_KEY\")?;\n\n// Pass a handle to the event loop and the API key to the Mercury constructor.\nlet client = Mercury::new(\u0026core.handle(), key)?;\n\n// The parse method returns a Future that will resolve to a parsed Article.\nlet resp = client.parse(\"https://example.com\").inspect(|article| {\n    println!(\"{:#?}\", article);\n});\n\n// Block the current thread until the future completes.\ncore.run(resp)?;\n```\n\n*Additional examples can be found [here](./examples).*\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0\n  ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license\n  ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostlight%2Fmercury-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostlight%2Fmercury-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostlight%2Fmercury-rs/lists"}