Skip to content

Commit

Permalink
Implemented GetSource function
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Jul 19, 2024
1 parent eda6ce6 commit 2df9743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func (c *Crawler) SetBasicAuth(username string, password string) {
c.password = password
}

func (c *Crawler) GetSource() io.ReadCloser {
return c.source
}

func (c *Crawler) GetReadable(useCycleTLS bool) (ItemCrawled, error) {
if err := c.FromAuto(useCycleTLS); err != nil {
return ItemCrawled{}, err
Expand Down

0 comments on commit 2df9743

Please # to comment.