Add GetTweet for default Scraper
This commit is contained in:
parent
1f0106ab6c
commit
da34364bf9
1 changed files with 5 additions and 0 deletions
|
|
@ -71,3 +71,8 @@ func (s *Scraper) GetTweet(id string) (*Tweet, error) {
|
|||
}
|
||||
return nil, fmt.Errorf("tweet with ID %s not found", id)
|
||||
}
|
||||
|
||||
// GetTweet wrapper for default Scraper
|
||||
func GetTweet(id string) (*Tweet, error) {
|
||||
return defaultScraper.GetTweet(id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue