Skip to content

Commit d14544d

Browse files
committed
replace url with URL in comments and docs
1 parent 9bdb620 commit d14544d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Per some basic testing, increasing concurrency seems to have diminishing returns
5858
Since an official Garfield comic API could not be found, this program scrapes [gocomics.com](https://www.gocomics.com/garfield/1978/6/19), and finds the [assets.amuniversal.com](https://assets.amuniversal.com/aead3a905f69012ee3c100163e41dd5b) link.
5959
This requires 2 HTTP requests per comic.
6060
The files hosted at [picayune.uclick.com](https://picayune.uclick.com/comics/ga/1978/ga780619.gif), while only requiring 1 request each, have been found to be very inconsistent and unstable, therefore are not used.
61-
See [Cached image urls](#cached-image-urls).
61+
See [Cached image URLs](#cached-image-urls).
6262

6363
## Possible speed optimizations
6464

@@ -68,8 +68,8 @@ The only forseeable optimization to this program would be using a different web
6868

6969
## Proxy service
7070

71-
Default proxy url is `https://proxy.darcy-700.workers.dev`, a simple Cloudflare worker.
72-
If you are continually seeing 'rate limited' (HTTP/429) error, try changing the proxy url (below).
71+
Default proxy URL is `https://proxy.darcy-700.workers.dev`, a simple Cloudflare worker.
72+
If you are continually seeing 'rate limited' (HTTP/429) error, try changing the proxy URL (below).
7373

7474
### Custom proxy service
7575

@@ -80,10 +80,10 @@ See [Setup a custom proxy service with Cloudflare worker](#setup-a-custom-proxy-
8080
Use `--no-proxy` argument.
8181
This is not recommended, you will most likely get immediately rate limited by [gocomics.com](https://www.gocomics.com/garfield/1978/6/19).
8282

83-
## Cached image urls
83+
## Cached image URLs
8484

85-
Without image url caching, each image would require 2 requests (see [API](#api)).
86-
By default, it checks for existing cached image urls by fetching [darccyy/everygarf-cache](https://github.com/darccyy/everygarf-cache).
85+
Without image URL caching, each image would require 2 requests (see [API](#api)).
86+
By default, it checks for existing cached image URLs by fetching [darccyy/everygarf-cache](https://github.com/darccyy/everygarf-cache).
8787
Disable with `--no-cache`, use a custom cache file URL (remote or local) with `--cache`, save your own cache file with `--save-cache`.
8888

8989
# Automatically Running with Systemd Timer
@@ -134,7 +134,7 @@ systemctl --user start everygarf.timer
134134

135135
> This has not been tested very well! It works on my machine, but if you have any problems, please [open an issue](https://github.com/darccyy/everygarf/issues/new)
136136
137-
Setup a Cloudflare worker with [Zibri/cloudflare-cors-anywhere](https://github.com/darccyy/cloudflare-cors-anywhere), and pass in the url with `--proxy`.
137+
Setup a Cloudflare worker with [Zibri/cloudflare-cors-anywhere](https://github.com/darccyy/cloudflare-cors-anywhere), and pass in the URL with `--proxy`.
138138

139139
1. [Create a Cloudflare account](https://dash.cloudflare.com/sign-up)
140140
2. Install [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) (Node package manager)

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub struct Args {
7272
#[arg(long, conflicts_with = "cache")]
7373
pub no_cache: bool,
7474

75-
/// Save image urls to local cache file
75+
/// Save image URLs to local cache file
7676
///
7777
/// Use cache file with `--cache <FILE>`
7878
///

src/download.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@ async fn fetch_image_url_from_date(
129129
.map_err(format_request_error)?;
130130

131131
let response_body = response.text().await.map_err(|error| {
132-
format!("Converting webpage body for image url to text ({url}) - {error}")
132+
format!("Converting webpage body for image URL to text ({url}) - {error}")
133133
})?;
134134

135135
let Some(char_index) = response_body.find("https://assets.amuniversal.com") else {
136-
return Err(format!("Cannot find image url in webpage body ({url})"));
136+
return Err(format!("Cannot find image URL in webpage body ({url})"));
137137
};
138138

139139
let Some(image_url) = response_body.get(char_index..char_index + 63) else {
140140
return Err(format!(
141-
"Slicing text of webpage body for image url ({url})"
141+
"Slicing text of webpage body for image URL ({url})"
142142
));
143143
};
144144

0 commit comments

Comments
 (0)