moved scraper logic out of main
This commit is contained in:
parent
994ee9c732
commit
c0ec6dc003
6
main.go
6
main.go
@ -61,7 +61,7 @@ var (
|
|||||||
fName string = "jobs.json"
|
fName string = "jobs.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func scrapeJobs() {
|
||||||
|
|
||||||
file, err := os.Create(fName)
|
file, err := os.Create(fName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -145,3 +145,7 @@ func main() {
|
|||||||
c.Visit(searchString)
|
c.Visit(searchString)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
scrapeJobs()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user