proj structure

pull/35/head
Cullen Watson 2023-09-03 12:05:50 -05:00
parent dafed42d58
commit 8579c8e985
11 changed files with 15 additions and 18 deletions

View File

@ -1,10 +1,14 @@
[tool.poetry] [tool.poetry]
name = "python-jobspy" name = "python-jobspy"
version = "0.1.0" version = "1.0.0"
description = "Job scraper for LinkedIn, Indeed & ZipRecruiter" description = "Job scraper for LinkedIn, Indeed & ZipRecruiter"
authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"] authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"]
readme = "README.md" readme = "README.md"
packages = [
{ include = "jobspy", from = "src" }
]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.10" python = "^3.10"
requests = "^2.31.0" requests = "^2.31.0"
@ -20,7 +24,4 @@ jupyter = "^1.0.0"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
[[tool.poetry.packages]]
include = "jobspy/**/*"

View File

@ -1,17 +1,14 @@
import pandas as pd import pandas as pd
from typing import List, Dict, Tuple, Union from typing import List, Tuple
from concurrent.futures import ThreadPoolExecutor from .jobs import JobType
from .scrapers.indeed import IndeedScraper
from .core.jobs import JobType from .scrapers.ziprecruiter import ZipRecruiterScraper
from .core.scrapers.indeed import IndeedScraper from .scrapers.linkedin import LinkedInScraper
from .core.scrapers.ziprecruiter import ZipRecruiterScraper from .scrapers import (
from .core.scrapers.linkedin import LinkedInScraper
from .core.scrapers import (
ScraperInput, ScraperInput,
Site, Site,
JobResponse, JobResponse,
CommonResponse,
) )

View File

@ -1,4 +1,4 @@
from jobspy import scrape_jobs from src.jobspy import scrape_jobs
def test_indeed(): def test_indeed():
@ -6,5 +6,4 @@ def test_indeed():
site_name="indeed", site_name="indeed",
search_term="software engineer", search_term="software engineer",
) )
assert result is not None assert result is not None

View File

@ -1,4 +1,4 @@
from jobspy import scrape_jobs from src.jobspy import scrape_jobs
def test_ziprecruiter(): def test_ziprecruiter():
@ -7,4 +7,4 @@ def test_ziprecruiter():
search_term="software engineer", search_term="software engineer",
) )
assert result is not None assert result is not None