# Fox News

- Category: [Media and Entertainment](https://printingpress.dev/library/media-and-entertainment)
- Command: `foxnews-pp-cli`
- Skill: `pp-foxnews`

Fox News headlines from Google Publisher RSS feeds on moxie.foxnews.com — section-selectable, no API key.

Printed by [@john-fiedler](https://github.com/john-fiedler) (John Fiedler)

Requirements: not declared

## Install

### npx (recommended: CLI and agent skill)

```bash
npx -y @mvanhorn/printing-press-library install foxnews
```

### npx (CLI only)

```bash
npx -y @mvanhorn/printing-press-library install foxnews --cli-only
```

### Hermes

```bash
hermes skills install mvanhorn/printing-press-library/cli-skills/pp-foxnews --force
```

### OpenClaw

Paste this to your OpenClaw agent:

Install the pp-foxnews skill from https://github.com/mvanhorn/printing-press-library/tree/main/cli-skills/pp-foxnews. The skill defines how its required CLI can be installed.

## Links

- Source: https://github.com/mvanhorn/printing-press-library/tree/main/library/media-and-entertainment/foxnews
- Agent skill: https://github.com/mvanhorn/printing-press-library/tree/main/cli-skills/pp-foxnews
- JSON record: https://printingpress.dev/api/v1/clis/foxnews
- HTML page: https://printingpress.dev/library/media-and-entertainment/foxnews

## Documentation

Read Fox News headlines from the public **Google Publisher RSS** feeds on `moxie.foxnews.com`. No API key, no scraping — one HTTP GET per request.

## Quick start

```bash
# Latest headlines (all sections) — default
foxnews-pp-cli headlines --limit 10 --json

# Politics only
foxnews-pp-cli headlines --section politics --limit 5 --json

# List section ids
foxnews-pp-cli sections --json

# Health check
foxnews-pp-cli doctor --json
```

## Sections

| `--section`        | Feed           |
| ------------------ | -------------- |
| `latest` (default) | `latest.xml`   |
| `world`            | `world.xml`    |
| `politics`         | `politics.xml` |
| `science`          | `science.xml`  |
| `health`           | `health.xml`   |
| `sports`           | `sports.xml`   |
| `travel`           | `travel.xml`   |
| `tech`             | `tech.xml`     |
| `opinion`          | `opinion.xml`  |
| `video`            | `videos.xml`   |

Alias: `videos` maps to `video`.

## Configuration

| Variable             | Purpose                                                                      |
| -------------------- | ---------------------------------------------------------------------------- |
| `FOX_NEWS_FEED_BASE` | Optional RSS base URL (default `https://moxie.foxnews.com/google-publisher`) |

## Output

- **Piped** (scripts/agents): JSON by default, wrapped as `{"meta":{...},"results":[...]}`
- **Terminal**: table by default; add `--json` or `--agent` for JSON

`--agent` sets `--json --compact --no-input --no-color --yes`. Compact keeps `title`, `link`, `published`, `section` on headlines.

```bash
foxnews-pp-cli headlines --section sports --limit 15 --agent
foxnews-pp-cli agent-context --pretty
```

This CLI does **not** ship Drudge-style `sync`, `splash`, `breaking`, or `which` — use `sections`, `headlines`, and `agent-context` instead.

## License

Apache-2.0. See [LICENSE](https://github.com/mvanhorn/printing-press-library/blob/main/library/media-and-entertainment/foxnews/LICENSE) and [NOTICE](https://github.com/mvanhorn/printing-press-library/blob/main/library/media-and-entertainment/foxnews/NOTICE).
