add yt guide

pull/42/head
Cullen Watson 2023-09-06 11:26:55 -05:00
parent fd883178be
commit 45c2d76e15
2 changed files with 21 additions and 17 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.ipynb linguist-vendored

View File

@ -7,6 +7,10 @@
- Scrapes job postings from **LinkedIn**, **Indeed** & **ZipRecruiter** simultaneously - Scrapes job postings from **LinkedIn**, **Indeed** & **ZipRecruiter** simultaneously
- Aggregates the job postings in a Pandas DataFrame - Aggregates the job postings in a Pandas DataFrame
[Video Guide for JobSpy](https://www.youtube.com/watch?v=-yS3mgI5H-4)
![jobspy](https://github.com/cullenwatson/JobSpy/assets/78247585/ec7ef355-05f6-4fd3-8161-a817e31c5c57) ![jobspy](https://github.com/cullenwatson/JobSpy/assets/78247585/ec7ef355-05f6-4fd3-8161-a817e31c5c57)
### Installation ### Installation
@ -22,31 +26,30 @@ pip install python-jobspy
from jobspy import scrape_jobs from jobspy import scrape_jobs
import pandas as pd import pandas as pd
jobs: pd.DataFrame = scrape_jobs( result: pd.DataFrame = scrape_jobs(
site_name=["indeed", "linkedin", "zip_recruiter"], site_name=["indeed", "linkedin", "zip_recruiter"],
search_term="software engineer", search_term="software engineer",
location="Dallas, TX", location="Dallas, TX",
results_wanted=10, results_wanted=10,
country='USA' # only needed for indeed country_indeed='USA' # only needed for indeed
) )
if jobs.empty: pd.set_option('display.max_columns', None)
print("No jobs found.") pd.set_option('display.max_rows', None)
else: pd.set_option('display.width', None)
pd.set_option('display.max_columns', None) pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc
pd.set_option('display.max_rows', None)
pd.set_option('display.width', None)
pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc
#1 output #1 output
print(jobs) print(result.jobs)
print(result.errors)
#2 display in Jupyter Notebook #2 display in Jupyter Notebook
#display(jobs) #display(result.jobs)
#display(result.errors)
#3 output to .csv #3 output to .csv
#jobs.to_csv('jobs.csv', index=False) #result.jobs.to_csv('result.jobs.csv', index=False)
``` ```
### Output ### Output
@ -71,7 +74,7 @@ Optional
├── is_remote (bool) ├── is_remote (bool)
├── results_wanted (int): number of job results to retrieve for each site specified in 'site_type' ├── results_wanted (int): number of job results to retrieve for each site specified in 'site_type'
├── easy_apply (bool): filters for jobs that are hosted on LinkedIn ├── easy_apply (bool): filters for jobs that are hosted on LinkedIn
├── country (enum): filters the country on Indeed ├── country_indeed (enum): filters the country on Indeed
``` ```
@ -108,7 +111,7 @@ ZipRecruiter searches for jobs in US/Canada & uses only the `location` parameter
### **Indeed** ### **Indeed**
For Indeed, the `country` parameter is required. Additionally, use the `location` parameter and include the city or state if necessary. For Indeed, the `country_indeed` parameter is required. Additionally, use the `location` parameter and include the city or state if necessary.
You can specify the following countries when searching on Indeed (use the exact name): You can specify the following countries when searching on Indeed (use the exact name):