format readme

pull/35/head
Cullen Watson 2023-09-03 19:18:40 -05:00
parent df37e87774
commit f584f1b32f
1 changed files with 24 additions and 15 deletions

View File

@ -26,18 +26,18 @@ jobs: pd.DataFrame = scrape_jobs(
if jobs.empty: if jobs.empty:
print("No jobs found.") print("No jobs found.")
else: else:
# 1 print #1 print
pd.set_option('display.max_columns', None) pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None) pd.set_option('display.max_rows', None)
pd.set_option('display.width', None) pd.set_option('display.width', None)
pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc
print(jobs) print(jobs)
# 2 display in Jupyter Notebook #2 display in Jupyter Notebook
# display(jobs) #display(jobs)
# 3 output to csv #3 output to .csv
# jobs.to_csv('jobs.csv', index=False) #jobs.to_csv('jobs.csv', index=False)
``` ```
### Output ### Output
@ -51,8 +51,6 @@ zip_recruiter Software Engineer - New Grad ZipRecruiter Santa Monica
zip_recruiter Software Developer TEKsystems Phoenix AZ fulltime hourly 65 75 https://www.ziprecruiter.com/jobs/teksystems-0... Top Skills' Details• 6 years of Java developme... zip_recruiter Software Developer TEKsystems Phoenix AZ fulltime hourly 65 75 https://www.ziprecruiter.com/jobs/teksystems-0... Top Skills' Details• 6 years of Java developme...
``` ```
### Parameters for `scrape_jobs()` ### Parameters for `scrape_jobs()`
```plaintext ```plaintext
Required Required
├── site_type (List[enum]): linkedin, zip_recruiter, indeed ├── site_type (List[enum]): linkedin, zip_recruiter, indeed
@ -87,12 +85,23 @@ JobPost
``` ```
### FAQ ## Frequently Asked Questions
#### Encountering issues with your queries? ---
Try reducing the number of `results_wanted` and/or broadening the filters. If problems persist, please submit an issue. **Q: Encountering issues with your queries?**
**A:** Try reducing the number of `results_wanted` and/or broadening the filters. If problems persist, [submit an issue](#).
#### Received a response code 429?
You have been blocked by the job board site for sending too many requests. ZipRecruiter seems to be the most aggressive at the moment. Consider waiting a few seconds, or try using a VPN. Proxy support coming soon. ---
**Q: Received a response code 429?**
**A:** This indicates that you have been blocked by the job board site for sending too many requests. Currently, **ZipRecruiter** is particularly aggressive with blocking. We recommend:
- Waiting a few seconds between requests.
- Trying a VPN to change your IP address.
**Note:** Proxy support is in development and coming soon!
---