Documentation
¶
Overview ¶
Package goscrape provides useful methods to scrape UDP trackers.
Goscrape may be used to scrape a single tracker for many torrents, multiple trackers for a single torrent, or a single tracker for a single torrent.
It provides 2 ways to do this:
Bulk: The preferred method allows you to reuse connections to repeatedly scrape the same tracker(s) to save reconnection time.
Single: A method for one-off scraping. It doesn't preserve the connection, so it will reconnect every time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bulk ¶
Bulk stores multiple sessions and keeps track of when to refresh the connection ID.
func NewBulk ¶
NewBulk creates a new bulk object for running multiple scrapes on the same set of trackers without recreating a new connection each time.
func (*Bulk) ScrapeBulk ¶
ScrapeBulk scrapes a set of info hashes from the connections the bulk was initialized with.