forked from danmax/r34-scraper
Compare commits
3 Commits
20a3a8c4c6
...
main
Author | SHA1 | Date | |
---|---|---|---|
5eaff063f3 | |||
ef1e502af1 | |||
1878807461
|
@@ -4,7 +4,7 @@ a scraper that well scrapes r34
|
||||
|
||||
## 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
|
||||

|
||||
|
@@ -138,7 +138,7 @@ fn extract_urls(html: &str) -> Vec<String> {
|
||||
|
||||
fn extract_img_url(html: &str) -> Result<String, &'static str> {
|
||||
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()
|
||||
.find(html)
|
||||
{
|
||||
|
Reference in New Issue
Block a user