From d33c24ebea9a85b41506d9e7f373366bca920f94 Mon Sep 17 00:00:00 2001 From: Mitsuo Shiota <48662507+mitsuoxv@users.noreply.github.com> Date: Mon, 22 May 2023 21:46:33 +0900 Subject: [PATCH] Fix/webscraping typos (#1487) --- webscraping.qmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webscraping.qmd b/webscraping.qmd index d7d58ae..e960393 100644 --- a/webscraping.qmd +++ b/webscraping.qmd @@ -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