Data and databases · Independent · 22 Oct 2026

flack0x/trendspyg

Free, maintained Python library + CLI for Google Trends: trending now, plus keyword interest over time, related queries & interest by region. A modern pytrends alternative.

← Data and databases
Trendspyg: Google Trends library. Pulls real-time search trends and history in Python.

In simple English

Google Trends is a free web tool that shows what people are searching for online. For a long time, the standard Python library for it stopped working properly. This tool replaces it with a working version that pulls trending topics and search interest history. You can use it in your own Python scripts, from your terminal, or connect it to an artificial intelligence assistant. It is free to use under an open licence, but heavy use can trigger Google rate limits.

What it is

Trendspyg is an actively maintained Python library and command-line tool that pulls real-time trends and historical search data from Google. It acts as a drop-in replacement for the abandoned pytrends library while adding local caching, history archiving, and an MCP (a way for an artificial intelligence assistant to talk to external tools) server.

What it is good for

Solo builders who need to track keyword popularity, do search engine optimization research, or feed real-time search trends into their automated applications without paying for a commercial data provider.

Stars58
LicenceMIT
Latestv1.9.0 (2026-10-01)checked 22 Oct 2026
Last code change2026-10-01
Written inPython
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Acts as a drop-in replacement for the abandoned pytrends library.
  • Includes a command-line interface and an AI assistant server.
  • Saves search history locally in a lightweight SQLite (a self-contained, serverless database engine) file.
Watch for
  • Requires Google Chrome (a web browser made by Google) installed on your system for certain deep search queries.
  • Heavy usage will quickly hit Google rate limits and block your IP address.
  • Requires Python knowledge to set up and run beyond basic command-line tasks.
Replaces

pytrends

Works well with

Claude Desktop

Also reviewed on Repo Radar
  • dbeaver/dbeaver52k stars

    A free desktop program that connects to more than a hundred kinds of database and lets you browse and edit them.

  • sqlfluff/sqlfluff10.0k stars

    A tool that checks SQL files for style problems and fixes most of them.

  • dimitri/pgloader6.5k stars

    Loads data into PostgreSQL from other databases and from files, keeping going when individual rows fail.

Install
source venv/bin/activate
pip install trendspyg[all]

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Data & Research › Market & Competitive Research › Trend Research.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.