Spaces:
Runtime error
Runtime error
File size: 700 Bytes
6d19d4c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import argparse
from selenium.webdriver.edge.options import Options
from selenium import webdriver
from utils import save_data, access, info_job,search, init_driver
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--url", default= "https://vn.indeed.com/jobs")
parser.add_argument("--job", default="AI, Data Science")
parser.add_argument("--location", default="Thành Phố Hồ Chí Minh")
args = parser.parse_args()
driver=init_driver()
url, job_, location = args.url, args.job, args.location
access(driver,url)
search(driver,job_,location)
data=info_job(driver)
save_data(data)
|