Skip to content

kaneel/aggreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Ggreg

A simple Rust project that will aggregate news from websites; taking selectors from a YAML file and exporting a JSON per website.

CLI

  • -c, --config: The path to the config file (defaults to ./.aggreg)
  • -l, --limit: The maximum number of articles to fetch
  • -o, --output: The output path (defaults to ./out)

Config file

The config file also takes limit and output as well as a list of feeds formatted like in the aggreg.example.yml file in this repository. The YAML file takes precedence over CLI options.

limit: 10
output: ./some/path
feeds: 
  - kotaku:
      url: "https://www.kotaku.co.uk/"
      selector: "#maincontentlist section:last-child article.media"
      anchor: ".media__body a"
      title: ".media__body h2 a"
      content: ".media__body p"

About

A simple Rust command line tool to aggregate website news

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages