Description Usage Arguments Value Examples
Get the data from one initial post by entering its url
1 | scrape_one_post(url, From = 1L, To = Inf, get_user_info = TRUE)
|
url |
URL to the post to scrape |
From |
The starting page number. Default is the first page |
To |
The ending page number. Default (Inf) is the last page (so all pages) |
get_user_info |
Get users' profile information. It includes the date of joining the forum and the total posts they have sent. The default is TRUE. |
A data frame
1 2 3 | ## get two pages of data from the post titled "Can Gastritis be cured?"
post_url = "https://patient.info/forums/discuss/can-gastritis-be-cured--613999"
scrape_one_post(url = post_url, From = 1, To = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.