Skip to content

A tiny command-line tool that searches Grokipedia, grabs the top article, and saves the full text to a .txt file.

Notifications You must be signed in to change notification settings

wallscreet/gpedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grokipedia Scraper

A tiny command-line tool that searches Grokipedia, grabs the top article, and saves the full text to a .txt file.


Requirements

  • Python 3.8+
  • playwright (for rendering the search page)
  • beautifulsoup4
  • requests

Usage

  • main.py searches grokipedia and pulls the top result only and saves the article to .txt (without citations)
  • n_search.py searches and pulls the top n results and prints the results (does not save to file)
# main.py
uv run main.py Elon Musk

# n_search.py
uv run n_search.py "Elon Musk" -n 3

About

A tiny command-line tool that searches Grokipedia, grabs the top article, and saves the full text to a .txt file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages