Documentation
¶
Index ¶
- func IsURL(input string) bool
- type FetchResult
- type Fetcher
- func (f *Fetcher) ExtractJobPosting(html string, parsedURL *url.URL) (content, company, position string)
- func (f *Fetcher) Fetch(rawURL string, outputName string) (*FetchResult, error)
- func (f *Fetcher) FormatOutput(content, sourceURL, company, position string) string
- func (f *Fetcher) GenerateFilename(company, position string, parsedURL *url.URL) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FetchResult ¶
type FetchResult struct {
URL string `json:"url"`
OutputPath string `json:"output_path"`
Company string `json:"company"`
Position string `json:"position"`
ContentSize int `json:"content_size"`
}
FetchResult contains the result of a fetch operation
type Fetcher ¶
Fetcher handles fetching and saving job postings from URLs
func NewFetcher ¶
NewFetcher creates a new Fetcher instance
func (*Fetcher) ExtractJobPosting ¶
func (f *Fetcher) ExtractJobPosting(html string, parsedURL *url.URL) (content, company, position string)
ExtractJobPosting extracts job posting content from HTML based on the job board
func (*Fetcher) Fetch ¶
func (f *Fetcher) Fetch(rawURL string, outputName string) (*FetchResult, error)
Fetch downloads a job posting from a URL and saves it to the output directory
func (*Fetcher) FormatOutput ¶
FormatOutput creates the final markdown output with metadata
Click to show internal directories.
Click to hide internal directories.