package structure

pull/35/head
Cullen Watson 2023-09-03 10:49:53 -05:00
parent 0bbd3ec043
commit 39f675f3c8
11 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@
### Usage ### Usage
```python ```python
from jobscrape import scrape_jobs from jobspy import scrape_jobs
import pandas as pd import pandas as pd
jobs: pd.DataFrame = scrape_jobs( jobs: pd.DataFrame = scrape_jobs(
@ -26,17 +26,17 @@ 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)
``` ```

View File

View File

@ -1,4 +1,4 @@
from jobscrape import scrape_jobs from jobspy import scrape_jobs
def test_indeed(): def test_indeed():

View File

@ -1,4 +1,4 @@
from jobscrape import scrape_jobs from jobspy import scrape_jobs
def test_ziprecruiter(): def test_ziprecruiter():