Scrape cryptocurrency prices from CoinGecko | Help Center (2024)

You are browsing a tutorial guide for the latest Octoparse version. If you are running an older version of Octoparse, we strongly recommend you upgrade because it is faster, easier and more robust! Download and upgrade here if you haven't already done so!

A cryptocurrency is a digital currency designed to work as a medium of exchange through a computer network that is not reliant on any central authority to uphold or maintain it.

This tutorial will show you how to scrape cryptocurrency prices from CoinGecko, a platform to help cryptocurrency players monitor the crypto market.

Scrape cryptocurrency prices from CoinGecko | Help Center (1)

To follow through with the tutorial, you may want to use the URL below:

The main steps are shown in the menu on the right, and you can download the sample task file here.

  • Enter the target URL into the search bar on the home screen and click Start.

Scrape cryptocurrency prices from CoinGecko | Help Center (2)

Octoparse's auto-detection function can help you quickly create a workflow according to the target website's design.

  • Click Auto-detect web page data on the Tips panel and wait for the detection to complete

    Scrape cryptocurrency prices from CoinGecko | Help Center (3)

Tip: When Octoparse goes on to detect the data on any web page, it screens the whole page and fetches one or more sets of data using its machine learning algorithm. If you don't see your target data being detected on the first attempt, you can switch to the second set of data by clicking on Switch auto-detect results.

Scrape cryptocurrency prices from CoinGecko | Help Center (4)

  • Uncheck Add a page scroll

  • Click Create workflow

Scrape cryptocurrency prices from CoinGecko | Help Center (5)

You will see a workflow created like the one below:

Scrape cryptocurrency prices from CoinGecko | Help Center (6)

  • Check the data fields in Data Preview and delete unwanted fields or rename them if needed

    • Delete unwanted data fields directly by clicking More and Delete field

      Scrape cryptocurrency prices from CoinGecko | Help Center (7)

    • Modify the data field names by double-clicking the headers

      Scrape cryptocurrency prices from CoinGecko | Help Center (8)

The auto-generated XPath of Pagination needs to be modified; otherwise, Octoparse will keep clicking the Next button on the last page, and the scraping cannot be stopped.

  • Click Pagination to open its settings

  • Input the Matching XPath as: //a[@aria-label="next"and not (@href='#')]

  • Click Apply to save the change

Scrape cryptocurrency prices from CoinGecko | Help Center (9)

  • Click Save on the upper right side to save your task

  • Click Run next to it and wait for the Run Task window to pop up

  • Select Run on your device to run the task on your local device

  • Wait for the task to complete

Here is a sample output from a local run:

Scrape cryptocurrency prices from CoinGecko | Help Center (10)

Related Articles

Scrape product info from Myntra (Jabong)

Scrape data from Duckduckgo search results

Scrape product information from eBay

Scrape ticket prices from Studhub

Scrape cryptocurrency information from Yahoo Finance

Scrape cryptocurrency prices from CoinGecko | Help Center (2024)
Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5613

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.