Documentation ¶
Index ¶
- func AddressesByCompanies(companies map[string]dou.Company, skipAddressMap map[string]bool) []string
- func Combine(companies map[string]dou.Company, vacancies []dou.PaginationVacancy, ...) ([]dou.FullCompany, []dou.SkipCompany)
- func ExtractCompanyAliasesByVacancies(vacancies []dou.PaginationVacancy) []string
- func Top50LargestCompanyAliasMap() map[string]bool
- type Client
- type CompanyScrapper
- type CompanyStorage
- type DailyVacancyScrapper
- type ReviewScrapper
- type ReviewStorage
- type VacancyScrapper
- type VacancyStorage
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressesByCompanies ¶
func AddressesByCompanies(companies map[string]dou.Company, skipAddressMap map[string]bool) []string
map[string]dou.Company only as source, to skip convert to slice
func ExtractCompanyAliasesByVacancies ¶
func ExtractCompanyAliasesByVacancies(vacancies []dou.PaginationVacancy) []string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CompanyOfficesByAlias ¶
func (*Client) ReviewsMainPage ¶
func (*Client) VacanciesMainPage ¶
type CompanyScrapper ¶
type CompanyScrapper struct {
// contains filtered or unexported fields
}
func NewCompanyScrapper ¶
func NewCompanyScrapper(storage *CompanyStorage, client *Client) *CompanyScrapper
func (*CompanyScrapper) ScrapByAliases ¶
func (s *CompanyScrapper) ScrapByAliases(aliases []string, softRequestLimit int) (map[string]dou.Company, dou.ScrapStats, error)
type CompanyStorage ¶
type CompanyStorage struct {
// contains filtered or unexported fields
}
func NewCompanyStorage ¶
func NewCompanyStorage(path string, lifetime uint32) *CompanyStorage
type DailyVacancyScrapper ¶
type DailyVacancyScrapper struct {
// contains filtered or unexported fields
}
func NewDailyVacancyScrapper ¶
func NewDailyVacancyScrapper(main *VacancyScrapper) *DailyVacancyScrapper
func (*DailyVacancyScrapper) Scrap ¶
func (s *DailyVacancyScrapper) Scrap() ([]dou.PaginationVacancy, dou.ScrapStats, error)
type ReviewScrapper ¶
type ReviewScrapper struct {
// contains filtered or unexported fields
}
func NewReviewScrapper ¶
func NewReviewScrapper(storage *ReviewStorage, client *Client) *ReviewScrapper
func (*ReviewScrapper) DiffScrap ¶
func (s *ReviewScrapper) DiffScrap() (map[string]int, dou.ScrapStats, error)
func (*ReviewScrapper) FullScrap ¶
func (s *ReviewScrapper) FullScrap() (map[string]int, dou.ScrapStats, error)
type ReviewStorage ¶
type ReviewStorage struct {
// contains filtered or unexported fields
}
func NewReviewStorage ¶
func NewReviewStorage(path string, lifetime uint32) *ReviewStorage
func (*ReviewStorage) Fetch ¶
func (s *ReviewStorage) Fetch() ([]dou.PaginationReview, bool, error)
func (*ReviewStorage) Store ¶
func (s *ReviewStorage) Store(source []dou.PaginationReview) error
type VacancyScrapper ¶
type VacancyScrapper struct {
// contains filtered or unexported fields
}
func NewVacancyScrapper ¶
func NewVacancyScrapper(storage *VacancyStorage, client *Client) *VacancyScrapper
func (*VacancyScrapper) DiffScrap ¶
func (s *VacancyScrapper) DiffScrap() ([]dou.PaginationVacancy, dou.ScrapStats, error)
scrap only top, hot in top -> skip hots, than running when exists newest
func (*VacancyScrapper) FullScrap ¶
func (s *VacancyScrapper) FullScrap() ([]dou.PaginationVacancy, dou.ScrapStats, error)
type VacancyStorage ¶
type VacancyStorage struct {
// contains filtered or unexported fields
}
func NewVacancyStorage ¶
func NewVacancyStorage(path string, lifetime uint32) *VacancyStorage
func (*VacancyStorage) Fetch ¶
func (s *VacancyStorage) Fetch() ([]dou.PaginationVacancy, bool, error)
func (*VacancyStorage) Store ¶
func (s *VacancyStorage) Store(source []dou.PaginationVacancy) error
Source Files ¶
- address_replace_map.go
- address_skip_map.go
- addresses.go
- cities.go
- client.go
- combine.go
- company_analyzer.go
- company_scrapper.go
- company_storage.go
- daily_vacancy_scrapper.go
- review_analyzer.go
- review_scrapper.go
- review_storage.go
- top_50_largest_companies.go
- url.go
- vacancy_analyzer.go
- vacancy_scrapper.go
- vacancy_storage.go
- wrapper.go
Click to show internal directories.
Click to hide internal directories.