Fix/webscraping typos (#1487)

This commit is contained in:
Mitsuo Shiota 2023-05-22 21:46:33 +09:00 committed by GitHub
parent 0bd216b75a
commit d33c24ebea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ We'll come back to CSS selectors in more detail in @sec-css-selectors, but lucki
- `#title` selects the element with the `id` attribute that equals "title".
Id attributes must be unique within a document, so this will only ever select a single element.
Lets try out these selectors with a simple example:
Let's try out these selectors with a simple example:
```{r}
html <- minimal_html("
@ -260,7 +260,7 @@ characters <- html |> html_elements("li")
characters
```
To extract the name of each character, we use `html_element()`, because when applied to the output of `html_elements()` its guaranteed to return one response per element:
To extract the name of each character, we use `html_element()`, because when applied to the output of `html_elements()` it's guaranteed to return one response per element:
```{r}
characters |> html_element("b")
@ -374,7 +374,7 @@ We recommend starting with the fun [CSS dinner](https://flukeout.github.io/) tut
## Putting it all together
Lets put this all together to scrape some websites.
Let's put this all together to scrape some websites.
There's some risk that these examples may no longer work when you run them --- that's the fundamental challenge of web scraping; if the structure of the site changes, then you'll have to change your scraping code.
### StarWars