Softwr

Machine Learning · head to head

LightGBM vs Scrapy

LightGBM logo

LightGBM

Machine Learning

Open-source gradient boosting framework for fast tree-based learning on large datasets

From
Free
Free plan
Yes
Scrapy logo

Scrapy

Web Scraping Tools

Open-source Python framework for crawling sites and extracting data

From
Free
Free plan
Yes

The short version

  • LightGBM is an MIT-licensed gradient boosting framework; Scrapy is a BSD-licensed Python framework for writing spiders.
  • Both are free.
  • Only LightGBM lists parallel and distributed learning; only Scrapy lists asynchronous crawling engine.
  • Where LightGBM falls short: A code library with no hosted service or user interface.
  • Where Scrapy falls short: requires writing Python code; there is no graphical interface.

How do LightGBM and Scrapy differ?

LightGBM and Scrapy differ on category (Machine Learning against Web Scraping Tools). Only the attributes on which LightGBM and Scrapy actually diverge.

Attributes where LightGBM and Scrapy differ
AttributeLightGBMScrapy
CategoryMachine LearningWeb Scraping Tools

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes), platforms (Windows, macOS, Linux).

Not yet recorded: founded for LightGBM.

Which features does each one have?

They share no listed features; 8 appear only for LightGBM and 6 only for Scrapy. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in LightGBM

  • Gradient boosting with tree-based learners
  • Parallel and distributed learning
  • GPU learning
  • Low memory use
  • Ranking and classification
  • Parameter tuning guides
  • Python, R and C interfaces
  • MIT licence

Only in Scrapy

  • Asynchronous crawling engine
  • Spiders using CSS or XPath selectors
  • CrawlSpider and SitemapSpider for common crawl patterns
  • Interactive shell for testing selectors
  • Feed exports to JSON, CSV, S3 and other formats
  • Extensions for JavaScript rendering, validation and proxy rotation

What is each one used for?

LightGBM is most often brought in for predictive models on large tabular datasets; Scrapy for large scale crawling of many pages. The jobs each tool is most often brought in to do.

LightGBM

  • Predictive models on large tabular datasetsnot Scrapy
  • Learning-to-rank for search and recommendationsnot Scrapy
  • Fast prototyping where memory is limitednot Scrapy
  • Competition and benchmark modellingnot Scrapy

Scrapy

  • Large scale crawling of many pagesnot LightGBM
  • Extracting structured data into JSON or CSVnot LightGBM
  • Building scrapers inside Python data pipelinesnot LightGBM
  • Sitemap-driven site crawlsnot LightGBM

Where do LightGBM and Scrapy fall short?

LightGBM's most cited limit: A code library with no hosted service or user interface. Scrapy's: requires writing Python code; there is no graphical interface. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

LightGBM

  • A code library with no hosted service or user interface
  • No vendor support plan, help comes from the community
  • Aimed at tabular data rather than images or text
  • Results depend on careful parameter tuning

Scrapy

  • Requires writing Python code; there is no graphical interface
  • Does not execute JavaScript without an extension such as scrapy-playwright
  • Proxy rotation, anti-ban and hosting rely on add-ons or paid services
  • Deployment and monitoring need separate tooling such as Scrapy Cloud

How much do LightGBM and Scrapy cost?

LightGBM is free to use; Scrapy is free to use. Plan by plan below, from each vendor's own pricing page.

LightGBM

Free

No published plan breakdown. See the LightGBM review.

Scrapy

Free

No published plan breakdown. See the Scrapy review.

Which should you pick?

Choose LightGBM if

  • You need gradient boosting with tree-based learners.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want parallel and distributed learning.

Choose Scrapy if

  • You need asynchronous crawling engine.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want spiders using css or xpath selectors.

Questions people ask

Is LightGBM or Scrapy better?
It depends on the job. LightGBM fits predictive models on large tabular datasets; Scrapy fits large scale crawling of many pages. LightGBM starts at Free and Scrapy at Free.
Which is cheaper, LightGBM or Scrapy?
LightGBM starts at Free and Scrapy at Free.
Does LightGBM or Scrapy run on more platforms?
Both run on Windows, macOS, Linux, so platform support will not decide this one for you.
Can I use LightGBM for free?
Both have a free tier, so you can try either at no cost before committing.
What is LightGBM best used for?
LightGBM is most often used for predictive models on large tabular datasets, learning-to-rank for search and recommendations, fast prototyping where memory is limited, competition and benchmark modelling. Of those, predictive models on large tabular datasets and learning-to-rank for search and recommendations are not what Scrapy is typically brought in for.
What can LightGBM do that Scrapy cannot?
LightGBM covers Gradient boosting with tree-based learners, Parallel and distributed learning, GPU learning, Low memory use. Scrapy covers Asynchronous crawling engine, Spiders using CSS or XPath selectors, CrawlSpider and SitemapSpider for common crawl patterns, Interactive shell for testing selectors.

Answered from the vendors’ own pages

LightGBM: Who created LightGBM?

Guolin Ke and Qiwei Ye at Microsoft Research, with a first release in 2016.

Source
Scrapy: What licence does Scrapy use?

Scrapy is released under the BSD licence and is written in Python.

Source
LightGBM: Is LightGBM free?

Yes, it is free and open source under the MIT licence.

Source
Scrapy: Who maintains Scrapy?

Zyte, formerly Scrapinghub, became the official maintainer in 2011. The project also has many outside contributors.

Source
LightGBM: Does LightGBM support GPUs and distributed training?

Yes, the documentation lists parallel, distributed and GPU learning with dedicated guides.

Source
Scrapy: Can Scrapy scrape JavaScript-heavy sites?

Not on its own. The Scrapy site lists scrapy-playwright as an extension for JavaScript rendering.

Source
Share

Related pages

Other head to heads