undefined

Scrape trending video information from YouTube

Monday, April 24, 2017 5:01 AM

For the latest tutorials, visit our new self-service portal. Sharpen your skills and explore new ways to use Octoparse.

 

The second most popular search engine in the world is YouTube, directly behind Google. A large number of videos available on YouTube – and their associated data, and comments can be really valuable.

Octoparse can scrape Youtube easily with pre-built templates. You may want to check it out here: Task Templates. Just enter a keyword/URL to get data extracted in minutes!

In this tutorial, we are going to show you how to scrape the trending video information from Youtube in only 3 steps with the Octoparse auto-detection feature.

Here is the Youtube trending video link that we will be using it as an example.
https://www.youtube.com/feed/trending?gl=US

 

Here are the steps in this tutorial [Download task file here] 

 

1. "Go To Web Page" - open the target website

2. Auto-detect web page data - create a workflow

3. Run your task - get data you want

 

1) "Go To Web Page" - open the target website
  • Create your task by inputting the URL in the search box on the homepage and clicking the start button nearby to move on

  

2) Auto-detect web page data - create a workflow

  • Click "Auto-detect web page data" and wait for it to complete

We need to check the data selected with the auto-detection. Go to "Data preview" to see if you're okay with the current data output.

  • You can delete unnecessary data fields directly by clicking the icon mceclip13.png
  • You can also modify the data field names here directly by clicking the icon mceclip14.png
  • Click "Edit" under the "Add a page scroll" to set up to scroll for one screen, the scroll 20 times, and wait for 1s for every scroll
  • Click "Create workflow"

  

3) Run your task - get data you want

  • Click "Save"
  • Click "Run" on the upper left side
  • Select "Run on your device" to run the task on your computer, or select "Run in the Cloud" to run the task in the Cloud (for premium users only)

 

Here is the sample data.

youtube demo data

 

 

 

 

 

 

Happy Data Hunting!

Author: The Octoparse Team

Download Octoparse Today

 

For more information about Octoparse, please click here.

Sign up today. 

 

 

We use cookies to enhance your browsing experience. Read about how we use cookies and how you can control them by clicking cookie settings. If you continue to use this site, you consent to our use of cookies.
Accept decline