Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendToWebhook ¶
func SendToWebhook(res ResponseData, c Config)
Types ¶
type Monitor ¶
type Monitor struct { LatestText string Proxies proxymanager.ProxyManager Config Config }
func NewMonitor ¶
NewMonitor returns a new Monitor object. A path to a txt file containing proxies can be passed in, or an empty string instead. If a proxy file is specified, it initializes a proxymanager instance. Proxies can be accessed from Monitor.Proxies To access next / random proxy for example: Monitor.Proxies.NextProxy() / Monitor.Proxies.RandomProxy()
func (*Monitor) StartMonitor ¶
func (m *Monitor) StartMonitor()
type ResponseData ¶
func GetPage ¶
func GetPage(proxy string) (ResponseData, error)
GetPage gets the latest news from https://supremenewyork.com/news. Can pass in an empty string for proxy if a proxy is not needed in the request. Returns struct ResponseData
Click to show internal directories.
Click to hide internal directories.