Beispiel #1
0
def main():
    query = input('What do you want to query? ex: python\n')
    location = input('Where do you work at? ex: london\n')
    print(f'scrapping {query} job in {location}')

    websites = [url_indeed, url_stackoverflow]
    for website in websites:
        website['query'] = query
        website['location'] = location

    indeed_jobs = get_indeed_jobs(url_indeed)
    stackoverflow_jobs = get_stackoverflow_jobs(url_stackoverflow)
    jobs = indeed_jobs + stackoverflow_jobs
    save_to_file(jobs)
Beispiel #2
0
def report():
    word = request.args.get('word')
    if word:
        word = word.lower()
        existing_jobs = db.get(word)
        if existing_jobs:
            jobs = existing_jobs
        else:
            jobs = get_indeed_jobs(word) + get_so_jobs(word)
            db[word] = jobs
    else:
        return redirect("/")
    return render_template("report.html",
                           searchingBy=word,
                           resultNumber=len(jobs),
                           jobs=jobs)
Beispiel #3
0
def report():
    job = request.args.get("job")
    if job:
        job = job.lower()

        jobs = db.get(job)
        if not jobs:
            jobs = get_indeed_jobs(job)
            jobs += get_stackoverflow_jobs(job)
            db[job] = jobs
    else:
        return redirect("/")
    return render_template("report.html",
                           resultsNumber=len(jobs),
                           searchingBy=job,
                           jobs=jobs)
Beispiel #4
0
def report():
    word=request.args.get("word")
    if word:
        word=word.lower()
        dbWord=db.get(word)
        if dbWord:
            jobs=dbWord
        else:
            jobs=get_indeed_jobs(word)
            if jobs==None:
                return render_template("none.html", word=word)
            db[word]=jobs  #indeed_jobs의 형태 [{'title':'모집공고','company':'주식회사'},{'title':'~~'}]    {'word': jobs의 형태 그대로}
    else:
        return redirect("/")
    # URL에서 report 뒤를 지우면 word는 None이 되어 error가 뜨니 이를 막자
    return render_template("report.html", word=word, number=len(jobs), jobs=jobs)
Beispiel #5
0
def report():
    word = request.args.get('word')
    if word:
        word = word.lower()
        existingJobs = db.get(word)
        if existingJobs:
            jobs = existingJobs
        else:
            indeed_jobs = get_indeed_jobs(word)
            so_jobs = get_so_jobs(word)
            jobs = indeed_jobs + so_jobs
            db[word] = jobs
    #else
    #return redirect("/")
    return render_template("report.html",
                           keyword=word,
                           cntResults=len(jobs),
                           jobs=jobs)
Beispiel #6
0
def report():
    word = request.args.get("word")
    if word:
        word = word.lower()
    else:
        return redirect("/")

    if db.get(word):
        jobs = db[word]
    else:
        indeed_jobs = get_indeed_jobs(word)
        stackoverflow_jobs = get_stack_overflow_jobs(word)
        jobs = indeed_jobs + stackoverflow_jobs
        db[word] = jobs

        return render_template("report.html",
                               searchingBy=word,
                               resultCount=len(jobs),
                               jobs=jobs)
Beispiel #7
0
def report():
    word = request.args.get("word")
    if word:
        word = word.lower()

        existingJobs = db.get(word)
        if existingJobs:
            jobs = existingJobs
        else:
            so_jobs = get_so_jobs(word)
            indeed_jobs = get_indeed_jobs(word)
            jobs = so_jobs + indeed_jobs
            db[word] = jobs
            # save_to_file(jobs, word)
    else:
        return redirect("/")
    return render_template("report.html",
                           searchingBy=word,
                           resultsNumber=len(jobs),
                           jobs=jobs)
Beispiel #8
0
from indeed import get_jobs as get_indeed_jobs
from so import get_jobs as get_so_jobs
from save import save_to_file

so_jobs = get_so_jobs()  # StackOverflow Jobs Scrapping
indeed_jobs = get_indeed_jobs()  # Indeed Jobs Scrapping
jobs = so_jobs + indeed_jobs  # 둘을 합침

save_to_file(jobs)
Beispiel #9
0
from indeed import get_jobs as get_indeed_jobs
# from human import get_jobs as get_human_jobs
# from save import save_to_file

# saramin_jobs=get_human_jobs("java")
indeed_jobs = get_indeed_jobs("java")
# jobs=saramin_jobs
# save_to_file(jobs)
Beispiel #10
0
from indeed import get_jobs as get_indeed_jobs
from stackoverflow import get_jobs as get_so_jobs
from save import save_to_file

key = str(input("Input Keyword : "))

indeed_jobs = get_indeed_jobs(key)
so_jobs = get_so_jobs(key)
jobs = indeed_jobs + so_jobs
save_to_file(jobs, key)
Beispiel #11
0
def save_jobs_csv():
    indeed_jobs = get_indeed_jobs()
    so_jobs = get_so_jobs()
    jobs = indeed_jobs + so_jobs
    save_to_file(jobs)
from indeed import get_indeed_jobs
from stackoverflow import get_stackoverflow_jobs
from save import save_to_file

indeed_jobs = (get_indeed_jobs())
so_jobs = (get_stackoverflow_jobs())

# put your data
save_to_file(so_jobs)
Beispiel #13
0
def get_jobs(key):
    indeed_jobs = get_indeed_jobs(key)
    so_jobs = get_so_jobs(key)
    jobs = indeed_jobs + so_jobs
    return jobs
Beispiel #14
0
from indeed import get_jobs as get_indeed_jobs
from so import get_jobs as get_so_jobs
from save import save_to_file

indeed_jobs = get_indeed_jobs()
so_jobs = get_so_jobs()

save_to_file(get_indeed_jobs())
def get_jobs(word):
  indeed_jobs = get_indeed_jobs(word)
  stack_jobs = get_stack_jobs(word)
  jobs = indeed_jobs + stack_jobs
  return jobs
Beispiel #16
0
def get_jobs(word):
    indeed_jobs = get_indeed_jobs(word)
    stackoverflow_jobs = get_so_jobs(word)
    # add any other job search site
    jobs = indeed_jobs + stackoverflow_jobs
    return jobs
Beispiel #17
0
from indeed import get_jobs as get_indeed_jobs
from stackoverflow import get_jobs as get_so_jobs
from save import save_to_file

so_jobs= get_so_jobs()
indeed_jobs= get_indeed_jobs()
jobs= so_jobs+indeed_jobs

save_to_file(jobs)

def get_jobs(word):
    indeed_jobs = get_indeed_jobs(word)
    so_jobs = get_so_jobs(word)
    jobs = so_jobs + indeed_jobs
    return jobs