Added readable mode for article content
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
use reqwest::Error;
|
||||
|
||||
// Do a request for the given URL, with a minimum time between requests
|
||||
// to avoid overloading the server.
|
||||
pub async fn do_throttled_request(url: &str) -> Result<String, Error> {
|
||||
let response = reqwest::get(url).await?;
|
||||
response.text().await
|
||||
}
|
||||
Reference in New Issue
Block a user