mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
finish rust rewrite, add docker, drop python
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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:#?}");
|
||||
}
|
||||
Reference in New Issue
Block a user