🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/thyleader/rss-proxy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/thyleader/rss-proxy

v0.0.0-20171005183335-095223de0afa
Source
Go
Version published
Created
Source

note: this was made for Tatsumaki to proxy RSS requests, but in reality it will grab any page and return it so do as you wish ¯\_(ツ)_/¯

RSS-Proxy

A simple webserver in Go that can proxy RSS requests through an easy to use API without sacrificing performance.

Installation

It is very simple to setup.

  • Download and install Go or grab a compiled binary from Thy.
  • Clone this repository
  • cd into the folder the repo was cloned to
  • Run go build to compile a binary for your operating system
  • Type ./RSS-Proxy or run it through your favorite process manager like so: pm2 start ./RSS-Proxy
  • The program will indicate when it is ready to serve requests, and you're off to the races!

If you grabbed a compiled binary from Thy, you only need to do step 5

how do i use this thing

After you've completed the above steps, the binary will begin listening on port 80 on the host device. If you need it to listen on a different port, you can easily change that in the main.go file under the variable port.

If you're running this on your own PC, type http://localhost into your browser to verify that it is running.

The main route is /v1/get (which is poorly named imo but i can't change it now :D)
To use it, send a POST request to that route with the data

{
    "URL": "link to rss page"
}

You will also need to set an Authorization header that is equal to the AUTH environment variable you set. The API will then return the RSS document without exposing the caller's IP address

feel free to copy/use this anywhere :D

FAQs

Package last updated on 05 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts