-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path_02_yourturn.qmd
More file actions
51 lines (34 loc) · 744 Bytes
/
_02_yourturn.qmd
File metadata and controls
51 lines (34 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: "Your Turn"
---
```{r}
library(tidyverse)
library(rvest)
```
Gather the HTML for
http://www.vondel.humanities.uva.nl/ecartico/persons/37598
```{r}
mypage <- read_html("_________________")
mypage
```
Display all the href attributes for the anchor text on the collected page
```html
<a href="https://foo.com">my link</a>
```
```{r}
mypage %>%
html_nodes("____") %>%
html_attr("____")
```
Practice using selector gadget and gather only the text from the list items in the sections: Marriages, Occupation(s), and Occupational address(es).
```{r}
mypage %>%
html_nodes("_______") %>%
html_text()
```
What are the main subject headings on the page?
```{r}
mypage %>%
html_nodes("___") %>%
html_text()
```