hn front page and fanclub working

This commit is contained in:
stjet
2025-03-05 09:31:42 +00:00
commit f31dd48a87
9 changed files with 2626 additions and 0 deletions

10
src/http.rs Normal file
View File

@@ -0,0 +1,10 @@
use reqwest::blocking;
pub fn get(url: &str) -> Option<String> {
if let Ok(resp) = blocking::get(url) {
if let Ok(text) = resp.text() {
return Some(text);
}
}
None
}