mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-04 19:44:30 -08:00
update example
This commit is contained in:
@@ -26,7 +26,6 @@ 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)
|
||||||
@@ -35,10 +34,10 @@ else:
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user