🌍 How to WEB SCRAPE in RStudio 🌍

Опубликовано: 21 Март 2026
на канале: Dean Chereden
8,489
205

In this video, I show you how to scrape a web page, using rvest in r studio, by web scrapping a single url or multiple pages using a for loop with a sequence.

#rstat #dataanalyst #rstudio

🌍 Web Page Url
https://www.imdb.com/search/title/?ti...

🌍 CSS Selector
https://selectorgadget.com/

📁 Rscript files
https://data.world/deanchereden/web-s...
https://data.world/deanchereden/web-s...


🔖c h a p t e r s 🔖

00:00 - Intro
00:24 - Review website to pull data
00:43 - CSS selector
01:05 - Find website codes to pull data
02:01 - Install packages
02:25 - Import the url
02:51 - Convert url into a readable format
03:27 - Get 'titles' from the web page
04:47 - Get 'years' from the web page
05:45 - Get other info from the web page
07:35 - Count the number of rows of data
07:49 - Add scraped data into one table
09:09 - Loop multiple-page requests
10:13 - Create an empty data frame
11:08 - Create a for loop
11:15 - Create a sequence for page numbers
12:38 - Store url with seq loop included
13:20 - Convert loop url to a readable format
13:25 - Get info from the web page loop
13:35 - Save data to a data frame
13:43 - Append loop data to the empty data frame
13:52 - Add a short pause between loops
14:02 - Run loop to scrape all pages


My RStudio Appearance Setup

RStudio theme: Modern
Zoom: 100%
Editor font: Lucida Console
Text rendering: (Default)
Editor font size: 16
Editor theme: Tomorrow Night 80s

To learn how to change your appearance in RStudio here:    • How to Download R & R Studio, Run R Studio...  


Contact and Socials

💌 My email - [email protected]
🌍 My website - https://www.deanchereden.com
🐦 Twitter -   / deanchereden  


Music

🎵 Vhsceral - Gimetime https://chll.to/dd82e17f

🎶 Listen to Chillhop Music -    • Misha & Jussi Halme - Bliss (A Felicidade)...