Skip to content

JoeVezzani/tariff-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tariff Impact Tracker

Track real-time social sentiment around tariffs, trade wars, and affected companies using the LunarCrush API.

Pulls from 50M+ social posts per hour across X, Reddit, TikTok, YouTube, Instagram, and 10K+ news sources.

Quick Start

git clone https://github.com/JoeVezzani/tariff-tracker.git
cd tariff-tracker

Grab an API key at lunarcrush.com/developers.

# Social intelligence report on tariffs
LUNARCRUSH_API_KEY=your_key node index.js

# Compare sentiment across companies
LUNARCRUSH_API_KEY=your_key node compare.js apple nike tesla walmart amazon

# Set up sentiment shift alerts (run on a cron)
LUNARCRUSH_API_KEY=your_key node alert.js tariffs "trade war" apple tesla nvidia

What you get

index.js - Full social intelligence report: post volume, engagements, sentiment, top viral posts driving the conversation.

compare.js - Side-by-side sentiment comparison for any list of companies or topics. Pass tickers as arguments or defaults to Apple, Nike, Tesla, Walmart, Amazon.

alert.js - Tracks sentiment over time and alerts when it shifts more than 10%. Run hourly via cron to catch moves early.

Cron setup

# Check every hour for sentiment shifts
0 * * * * cd /path/to/tariff-tracker && LUNARCRUSH_API_KEY=your_key node alert.js >> alerts.log

Blog post

Full walkthrough: I Built a Tariff Impact Tracker That Shows What the Internet Actually Thinks

More

License

MIT

About

Track real-time social sentiment around tariffs using LunarCrush API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors