3 Commits

Author SHA1 Message Date
5eaff063f3 Update README.md
made readme more accurate
2024-11-25 03:31:16 +01:00
ef1e502af1 Merge pull request 'fix' (#14) from ErrorNoInternet/r34-scraper:fix into main
👍
2024-11-25 03:29:35 +01:00
1878807461 fix 2024-11-24 21:28:26 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ a scraper that well scrapes r34
## note ## note
this program is pretty much complete, although i am planning to add a few extra features. this program is pretty much complete, although i might add a few extra features.
## example usage image ## example usage image
![example image](./image.png) ![example image](./image.png)

View File

@@ -138,7 +138,7 @@ fn extract_urls(html: &str) -> Vec<String> {
fn extract_img_url(html: &str) -> Result<String, &'static str> { fn extract_img_url(html: &str) -> Result<String, &'static str> {
if let Some(img_url) = if let Some(img_url) =
Regex::new(r"https://us\.rule34\.xxx/images/([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.[A-Za-z0-9]+") Regex::new(r"https://us\.rule34\.xxx//images/([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.[A-Za-z0-9]+")
.unwrap() .unwrap()
.find(html) .find(html)
{ {