Skip to content
chainsawriot edited this page Nov 11, 2022 · 1 revision
require(rtoot)
#> Loading required package: rtoot
x <- get_timeline_public(limit = 5)
x$content
#> [1] "<p>Activatie en gebruik van MyID.be (de nieuwe itsme) tijdelijk niet mogelijk: \"Digitale sleutel bevat mogelijk nog kwetsbaarheden\"</p><p><a href=\"https://www.vrt.be/vrtnws/nl/2022/11/10/nieuwe-itsme-myid/?deliveryName=DM329175\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">vrt.be/vrtnws/nl/2022/11/10/ni</span><span class=\"invisible\">euwe-itsme-myid/?deliveryName=DM329175</span></a></p>"
#> [2] "<p>fantastic time plotting global domination over dinner with @[email protected] last night… keep a close eye on this space 👀 💪💥</p><p>cc: @[email protected]</p>"                                                                                                                                                                                                                                                                                                             
#> [3] "<p>Let's start with the fact that Twitter appears to be completely screwed. What was Musk thinking? Was he even thinging?</p>"                                                                                                                                                                                                                                                                                                                                                             
#> [4] "<p>QB @[email protected] called FTX \"safe and easy\"</p><p><a href=\"https://twitter.com/Trevorlawrencee/status/1446270051229831178\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">twitter.com/Trevorlawrencee/st</span><span class=\"invisible\">atus/1446270051229831178</span></a></p>"                                                                                                          
#> [5] "<p>Wann kommt der rüge-button auf mastodon</p>"

purrr::map_chr(x$content, ~ rvest::html_text2(rvest::read_html(.)))
#> [1] "Activatie en gebruik van MyID.be (de nieuwe itsme) tijdelijk niet mogelijk: \"Digitale sleutel bevat mogelijk nog kwetsbaarheden\"\n\nhttps://www.vrt.be/vrtnws/nl/2022/11/10/nieuwe-itsme-myid/?deliveryName=DM329175"
#> [2] "fantastic time plotting global domination over dinner with @[email protected] last night… keep a close eye on this space 👀 💪💥\n\ncc: @[email protected]"                                                   
#> [3] "Let's start with the fact that Twitter appears to be completely screwed. What was Musk thinking? Was he even thinging?"                                                                                                
#> [4] "QB @[email protected] called FTX \"safe and easy\"\n\nhttps://twitter.com/Trevorlawrencee/status/1446270051229831178"                                                                                        
#> [5] "Wann kommt der rüge-button auf mastodon"

Created on 2022-11-11 by the reprex package (v2.0.1)

Clone this wiki locally