From 39f675f3c826c61977295d6e7769c2cafdd6068e Mon Sep 17 00:00:00 2001 From: Cullen Watson Date: Sun, 3 Sep 2023 10:49:53 -0500 Subject: [PATCH] package structure --- README.md | 10 +++++----- {jobscrape => python_jobspy/jobspy}/__init__.py | 0 {jobscrape => python_jobspy/jobspy}/core/__init__.py | 0 .../jobspy}/core/jobs/__init__.py | 0 .../jobspy}/core/scrapers/__init__.py | 0 .../jobspy}/core/scrapers/indeed/__init__.py | 0 .../jobspy}/core/scrapers/linkedin/__init__.py | 0 .../jobspy}/core/scrapers/ziprecruiter/__init__.py | 0 python_jobspy/tests/__init__.py | 0 {tests => python_jobspy/tests}/test_indeed.py | 2 +- {tests => python_jobspy/tests}/test_ziprecruiter.py | 2 +- 11 files changed, 7 insertions(+), 7 deletions(-) rename {jobscrape => python_jobspy/jobspy}/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/jobs/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/scrapers/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/scrapers/indeed/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/scrapers/linkedin/__init__.py (100%) rename {jobscrape => python_jobspy/jobspy}/core/scrapers/ziprecruiter/__init__.py (100%) create mode 100644 python_jobspy/tests/__init__.py rename {tests => python_jobspy/tests}/test_indeed.py (81%) rename {tests => python_jobspy/tests}/test_ziprecruiter.py (68%) diff --git a/README.md b/README.md index 5150490..68b12ae 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ### Usage ```python -from jobscrape import scrape_jobs +from jobspy import scrape_jobs import pandas as pd jobs: pd.DataFrame = scrape_jobs( @@ -26,17 +26,17 @@ jobs: pd.DataFrame = scrape_jobs( if jobs.empty: print("No jobs found.") else: - #1 print + # 1 print pd.set_option('display.max_columns', None) 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 print(jobs) - #2 display in Jupyter Notebook + # 2 display in Jupyter Notebook # display(jobs) - - #3 output to csv + + # 3 output to csv # jobs.to_csv('jobs.csv', index=False) ``` diff --git a/jobscrape/__init__.py b/python_jobspy/jobspy/__init__.py similarity index 100% rename from jobscrape/__init__.py rename to python_jobspy/jobspy/__init__.py diff --git a/jobscrape/core/__init__.py b/python_jobspy/jobspy/core/__init__.py similarity index 100% rename from jobscrape/core/__init__.py rename to python_jobspy/jobspy/core/__init__.py diff --git a/jobscrape/core/jobs/__init__.py b/python_jobspy/jobspy/core/jobs/__init__.py similarity index 100% rename from jobscrape/core/jobs/__init__.py rename to python_jobspy/jobspy/core/jobs/__init__.py diff --git a/jobscrape/core/scrapers/__init__.py b/python_jobspy/jobspy/core/scrapers/__init__.py similarity index 100% rename from jobscrape/core/scrapers/__init__.py rename to python_jobspy/jobspy/core/scrapers/__init__.py diff --git a/jobscrape/core/scrapers/indeed/__init__.py b/python_jobspy/jobspy/core/scrapers/indeed/__init__.py similarity index 100% rename from jobscrape/core/scrapers/indeed/__init__.py rename to python_jobspy/jobspy/core/scrapers/indeed/__init__.py diff --git a/jobscrape/core/scrapers/linkedin/__init__.py b/python_jobspy/jobspy/core/scrapers/linkedin/__init__.py similarity index 100% rename from jobscrape/core/scrapers/linkedin/__init__.py rename to python_jobspy/jobspy/core/scrapers/linkedin/__init__.py diff --git a/jobscrape/core/scrapers/ziprecruiter/__init__.py b/python_jobspy/jobspy/core/scrapers/ziprecruiter/__init__.py similarity index 100% rename from jobscrape/core/scrapers/ziprecruiter/__init__.py rename to python_jobspy/jobspy/core/scrapers/ziprecruiter/__init__.py diff --git a/python_jobspy/tests/__init__.py b/python_jobspy/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_indeed.py b/python_jobspy/tests/test_indeed.py similarity index 81% rename from tests/test_indeed.py rename to python_jobspy/tests/test_indeed.py index 75a930d..3ab2651 100644 --- a/tests/test_indeed.py +++ b/python_jobspy/tests/test_indeed.py @@ -1,4 +1,4 @@ -from jobscrape import scrape_jobs +from jobspy import scrape_jobs def test_indeed(): diff --git a/tests/test_ziprecruiter.py b/python_jobspy/tests/test_ziprecruiter.py similarity index 68% rename from tests/test_ziprecruiter.py rename to python_jobspy/tests/test_ziprecruiter.py index d9da0b9..5320690 100644 --- a/tests/test_ziprecruiter.py +++ b/python_jobspy/tests/test_ziprecruiter.py @@ -1,4 +1,4 @@ -from jobscrape import scrape_jobs +from jobspy import scrape_jobs def test_ziprecruiter():