mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-24 23:42:18 +00:00
11 lines
246 B
Rust
11 lines
246 B
Rust
use x_media::site;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let url = std::env::args()
|
|
.nth(1)
|
|
.expect("usage: cargo run -p x-media --example fetch -- <url>");
|
|
let result = site::fetch(&url).await;
|
|
println!("{result:#?}");
|
|
}
|