moved scraper logic out of main

This commit is contained in:
christian 2024-06-08 22:12:22 +02:00
parent 994ee9c732
commit c0ec6dc003

View File

@ -61,7 +61,7 @@ var (
fName string = "jobs.json"
)
func main() {
func scrapeJobs() {
file, err := os.Create(fName)
if err != nil {
@ -145,3 +145,7 @@ func main() {
c.Visit(searchString)
}
func main() {
scrapeJobs()
}