How methods returning channels work
masterSome methods (like GetTweets) return Go channels. These are designed to abstract away cursor management.
Key behaviors:
- They use the same underlying
Fetchendpoints and are subject to the same rate limits. - If an underlying
Fetchmethod encounters an error, the error is passed into the result object (e.g.,twitterscraper.TweetResult). - Important: When using methods that return a result object containing an error, you must check if
result.Error != nilbefore attempting to access the data to avoid issues when the scraper stops.