Skip to content

Commit ac47f2b

Browse files
fix inconsistent subheading in scraping/api
1 parent 0b24720 commit ac47f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reading.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ Now that we have the CSS selectors that describe the properties of the elements
10551055
that we want to target, we can use them to find
10561056
certain elements in web pages and extract data.
10571057
1058-
**Using `rvest`**
1058+
#### Using `rvest` {-}
10591059
10601060
Now that we have our CSS selectors we can use the `rvest` R package \index{rvest} to scrape our
10611061
desired data from the website. We start by loading the `rvest` package:
@@ -1199,7 +1199,7 @@ Be careful not to overrun your quota! In this example, we should take a look at
11991199
[the Twitter website](https://developer.twitter.com/en/docs/twitter-api/rate-limits) to see what limits
12001200
we should abide by when using the API.
12011201

1202-
**Using `rtweet`**
1202+
#### Using `rtweet` {-}
12031203

12041204
After checking the Twitter website, it seems like asking for 400 tweets one time is acceptable.
12051205
So we can use the `get_timelines` function to ask for the last 400 tweets from the [\@tidyverse](https://twitter.com/tidyverse) account.

0 commit comments

Comments
 (0)