Returns an RSS feed of a board's threads. Like the official RSS (index.rss), but removes threads with less than -n number of replies to clean up fetching threads with no replies.
news– Newsg– Technologyck– Cooking & Foodout– Outdoorsv– Video Gamesvp– Pokemonsp– Sportsco– Comics & Cartoonstrv– Travelbiz– Business
Make sure you have Go installed. Then clone and build the tool:
git clone https://github.com/fluteds/4chan-rss.git
cd 4chan-rss
go build -o 4chan-rss
./4chan-rss -b g -n 30 -p 1The script can be run from a terminal after being built as a binary using go build.
./4chan-rss -b g,vg,ck -n 30 -p 1 -f generalOr you can run it automatically via a GitHub Action and change the boards fetched within the create-feed step.
-b <boards>– Boards to fetch, comma-separated (e.g.g,v,ck)-n <number>– Minimum number of replies to include thread (default:0)-p <pages>– Number of pages to parse (default:1)-f <"general">- Filter out keywords from being fetched
You can automate the feed generation using GitHub Actions.
Update the boards and arguments in the create-feed job in your workflow.
Note
This will create a rss.xml file in your repo
- Save output to specifed location/file
- Fetch threads by a keyword