Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Medium article downloader
func NewClient ¶
NewClient creates a new Medium client source can be either a username or a domain (blog.medium.com or medium.com/publication) outputDir is the directory where markdown files will be saved
func (*Client) DownloadArticles ¶
DownloadArticles downloads Medium articles limit: number of latest articles to download (0 means all articles) Returns an error if the download process fails
type SourceType ¶
type SourceType int
SourceType represents the type of Medium source (user or domain)
const ( // UserSource represents a Medium user profile UserSource SourceType = iota // DomainSource represents a Medium blog or publication DomainSource )
Click to show internal directories.
Click to hide internal directories.