proj structure

pull/35/head
Cullen Watson 2023-09-03 11:12:21 -05:00
parent 0139e7d05f
commit 86f9e6faca
2 changed files with 30 additions and 5 deletions

View File

@ -634,7 +634,7 @@
} }
], ],
"source": [ "source": [
"from jobscrape import scrape_jobs\n", "from jobspy import scrape_jobs\n",
"import pandas as pd\n", "import pandas as pd\n",
"\n", "\n",
"jobs: pd.DataFrame = scrape_jobs(\n", "jobs: pd.DataFrame = scrape_jobs(\n",
@ -646,18 +646,17 @@
"if jobs.empty:\n", "if jobs.empty:\n",
" print(\"No jobs found.\")\n", " print(\"No jobs found.\")\n",
"else:\n", "else:\n",
"\n", " # 1 print\n",
" #1 print\n",
" pd.set_option('display.max_columns', None)\n", " pd.set_option('display.max_columns', None)\n",
" pd.set_option('display.max_rows', None)\n", " pd.set_option('display.max_rows', None)\n",
" pd.set_option('display.width', None)\n", " pd.set_option('display.width', None)\n",
" pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc\n", " pd.set_option('display.max_colwidth', 50) # set to 0 to see full job url / desc\n",
" print(jobs)\n", " print(jobs)\n",
"\n", "\n",
" #2 display in Jupyter Notebook\n", " # 2 display in Jupyter Notebook\n",
" display(jobs)\n", " display(jobs)\n",
"\n", "\n",
" #3 output to csv\n", " # 3 output to csv\n",
" jobs.to_csv('jobs.csv', index=False)" " jobs.to_csv('jobs.csv', index=False)"
] ]
}, },

26
poetry.toml Normal file
View File

@ -0,0 +1,26 @@
[tool.poetry]
name = "python-jobspy"
version = "0.1.0"
description = "Job scraper for LinkedIn, Indeed & ZipRecruiter"
authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.31.0"
tls-client = "^0.2.1"
beautifulsoup4 = "^4.12.2"
pandas = "^2.1.0"
pydantic = "^2.3.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.1"
jupyter = "^1.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.packages]]
include = "jobspy/**/*"