เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Custom arguments for throttled functions

Execute the following code in the console on the right:

throttled_read_html <- slowly(~ read_html("https://wikipedia.org"),
                    rate = rate_delay(0.5))

for(i in c(1, 2, 3)){
  throttled_read_html("https://google.com") %>% 
      html_element("title") %>% 
      html_text() %>%
    print()
}       

Why does it print "Wikipedia" three times rather than "Google"?

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Web Scraping in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด