Skip to content

A Twitter bot @ProductHunToday that tweet trending Product Hunt products every day, in short video!

Notifications You must be signed in to change notification settings

Kamigami55/product-hunt-today

Repository files navigation

Product Hunt Today

Product Hunt Today Twitter account

A Twitter bot @ProductHunToday that tweets trending Product Hunt products every day, in short video!

Tech stack

Sample tweet

https://twitter.com/ProductHunToday/status/1506186218714849287

Twitter post from Product Hunt Today

Get started

Install dependencies

yarn install

Setup environment variables

Create .env file, with your Product Hunt & Twitter API key

REACT_APP_PRODUCT_HUNT_API_KEY="<your-key>"
TWITTER_CONSUMER_KEY="<your-key>"
TWITTER_CONSUMER_SECRET="<your-key>"
TWITTER_ACCESS_TOKEN_KEY="<your-key>"
TWITTER_ACCESS_TOKEN_SECRET="<your-key>"

Fetch products

This will call Product Hunt API, and store result in <ProjectRoot>/data/today.json

yarn fetch

Start preview

This will open browser to preview video

yarn start

Render video

This will store generated video in <ProjectRoot>/out/video.mp4

yarn build

Post to Twitter

yarn post-tweet

Contribute

PRs are welcome!

Feel free to DM me on Twitter @EasonChang_me if any suggestions

Support

Support me in creating more awesome projects!

"Buy Me A Coffee"