jobsieve 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jobsieve-2.0.0/LICENSE +202 -0
- jobsieve-2.0.0/NOTICE +8 -0
- jobsieve-2.0.0/PKG-INFO +272 -0
- jobsieve-2.0.0/README.md +228 -0
- jobsieve-2.0.0/jobsieve/__init__.py +0 -0
- jobsieve-2.0.0/jobsieve/ai_service.py +304 -0
- jobsieve-2.0.0/jobsieve/api.py +407 -0
- jobsieve-2.0.0/jobsieve/app.py +529 -0
- jobsieve-2.0.0/jobsieve/careers.py +102 -0
- jobsieve-2.0.0/jobsieve/cli.py +492 -0
- jobsieve-2.0.0/jobsieve/crawler.py +204 -0
- jobsieve-2.0.0/jobsieve/data/regions.json +1 -0
- jobsieve-2.0.0/jobsieve/data/watchlists/gulf-mena.json +13 -0
- jobsieve-2.0.0/jobsieve/db.py +635 -0
- jobsieve-2.0.0/jobsieve/demo.py +50 -0
- jobsieve-2.0.0/jobsieve/discovery.py +59 -0
- jobsieve-2.0.0/jobsieve/duplicates.py +27 -0
- jobsieve-2.0.0/jobsieve/eligibility.py +368 -0
- jobsieve-2.0.0/jobsieve/freshness.py +45 -0
- jobsieve-2.0.0/jobsieve/launcher.py +49 -0
- jobsieve-2.0.0/jobsieve/mcp_server.py +158 -0
- jobsieve-2.0.0/jobsieve/notifications.py +143 -0
- jobsieve-2.0.0/jobsieve/places.py +100 -0
- jobsieve-2.0.0/jobsieve/profile.py +170 -0
- jobsieve-2.0.0/jobsieve/salary.py +61 -0
- jobsieve-2.0.0/jobsieve/schedule.py +48 -0
- jobsieve-2.0.0/jobsieve/scraper.py +543 -0
- jobsieve-2.0.0/jobsieve/sources/__init__.py +49 -0
- jobsieve-2.0.0/jobsieve/sources/arbeitnow.py +45 -0
- jobsieve-2.0.0/jobsieve/sources/base.py +178 -0
- jobsieve-2.0.0/jobsieve/sources/boards.py +179 -0
- jobsieve-2.0.0/jobsieve/sources/ddg.py +120 -0
- jobsieve-2.0.0/jobsieve/sources/himalayas.py +64 -0
- jobsieve-2.0.0/jobsieve/sources/jobicy.py +51 -0
- jobsieve-2.0.0/jobsieve/sources/remoteok.py +43 -0
- jobsieve-2.0.0/jobsieve/sources/remotive.py +37 -0
- jobsieve-2.0.0/jobsieve/sources/web.py +28 -0
- jobsieve-2.0.0/jobsieve/sources/workingnomads.py +36 -0
- jobsieve-2.0.0/jobsieve/tailor.py +96 -0
- jobsieve-2.0.0/jobsieve/util.py +113 -0
- jobsieve-2.0.0/jobsieve/watchlist.py +122 -0
- jobsieve-2.0.0/jobsieve.egg-info/PKG-INFO +272 -0
- jobsieve-2.0.0/jobsieve.egg-info/SOURCES.txt +47 -0
- jobsieve-2.0.0/jobsieve.egg-info/dependency_links.txt +1 -0
- jobsieve-2.0.0/jobsieve.egg-info/entry_points.txt +3 -0
- jobsieve-2.0.0/jobsieve.egg-info/requires.txt +29 -0
- jobsieve-2.0.0/jobsieve.egg-info/top_level.txt +1 -0
- jobsieve-2.0.0/pyproject.toml +81 -0
- jobsieve-2.0.0/setup.cfg +4 -0
jobsieve-2.0.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
jobsieve-2.0.0/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Jobsieve
|
|
2
|
+
Copyright 2026 Firas Lamouchi
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Firas Lamouchi
|
|
5
|
+
(https://github.com/firaslamouchi21/jobsieve).
|
|
6
|
+
|
|
7
|
+
Versions up to and including 0.3.0 were released under the MIT License.
|
|
8
|
+
Version 2.0.0 and later are released under the Apache License, Version 2.0.
|
jobsieve-2.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jobsieve
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Sifts job listings down to the ones you are eligible for: free, local-first, with optional AI scoring
|
|
5
|
+
Author-email: Firas Lamouchi <firaslamouchi21@gmail.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/firaslamouchi21/jobsieve
|
|
8
|
+
Project-URL: Repository, https://github.com/firaslamouchi21/jobsieve
|
|
9
|
+
Project-URL: Issues, https://github.com/firaslamouchi21/jobsieve/issues
|
|
10
|
+
Keywords: jobsieve,job-search,ai,remote-jobs,cli
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
License-File: NOTICE
|
|
21
|
+
Requires-Dist: requests<3,>=2.31
|
|
22
|
+
Requires-Dist: beautifulsoup4<5,>=4.12
|
|
23
|
+
Requires-Dist: ddgs<10,>=9.0
|
|
24
|
+
Provides-Extra: api
|
|
25
|
+
Requires-Dist: fastapi<1,>=0.115; extra == "api"
|
|
26
|
+
Requires-Dist: uvicorn[standard]<1,>=0.30; extra == "api"
|
|
27
|
+
Provides-Extra: ui
|
|
28
|
+
Requires-Dist: streamlit<2,>=1.41; extra == "ui"
|
|
29
|
+
Provides-Extra: browser
|
|
30
|
+
Requires-Dist: playwright==1.54.0; extra == "browser"
|
|
31
|
+
Provides-Extra: ai
|
|
32
|
+
Requires-Dist: anthropic<3,>=1.0; extra == "ai"
|
|
33
|
+
Provides-Extra: mcp
|
|
34
|
+
Requires-Dist: mcp>=1.2; extra == "mcp"
|
|
35
|
+
Provides-Extra: all
|
|
36
|
+
Requires-Dist: jobsieve[ai,api,browser,mcp,ui]; extra == "all"
|
|
37
|
+
Provides-Extra: dev
|
|
38
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
39
|
+
Requires-Dist: httpx>=0.27; extra == "dev"
|
|
40
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
41
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
42
|
+
Requires-Dist: jobsieve[api,mcp]; extra == "dev"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
# Jobsieve
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+

|
|
49
|
+

|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
**Find the jobs you can actually apply for from where you live.** Jobsieve is a free, self-hosted job search. It collects listings from job feeds, company career boards and pages you save, checks every one against your country and work rights, and tells you which are **eligible**, **unclear** or **not eligible**, with the reason in plain words. Then it helps you keep track and apply. It was built for people searching from outside the US and the EU, such as the Gulf and MENA, where most job tools quietly show you jobs you cannot take.
|
|
53
|
+
|
|
54
|
+
Built it for myself while job hunting. It found the job. Now it is open for you.
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
## Why this one
|
|
59
|
+
|
|
60
|
+
- **It answers "can I apply?"** Remote only for the US, on-site abroad with no visa, clearance required: each job gets a verdict and the reasons, and anything it is unsure about says "unclear". Nothing is hidden or deleted. [How verdicts work, and how accurate they are](docs/eligibility.md).
|
|
61
|
+
- **It reaches past the usual feeds.** Remote job feeds, the career boards of companies you watch (Greenhouse, Lever, Ashby, SmartRecruiters), pages you list, and a browser extension that saves the job page you are looking at, on any site.
|
|
62
|
+
- **Your data stays yours.** Everything lands in a local SQLite file. No accounts, no telemetry. [What can leave your machine, and when](docs/privacy.md).
|
|
63
|
+
- **AI is optional, and any model works.** Use Groq, Gemini, Anthropic, OpenAI, or a local model through Ollama or LM Studio, or run free in Lite Mode with no key. Draft CV tweaks and a cover letter for a job, without invented experience.
|
|
64
|
+
- **Run it your way.** `jobsieve start` runs the dashboard and API with no Docker, or use Docker Compose. Everything the dashboard does is also a REST endpoint, a CLI command and an MCP tool for AI agents.
|
|
65
|
+
|
|
66
|
+
## What you get
|
|
67
|
+
|
|
68
|
+
- A profile (where you live, where you can work, visa needs, pay floor, dealbreakers) that every job is checked against
|
|
69
|
+
- Jobs ordered eligible first, with freshness (posted, closing, closed) and duplicates across sources merged
|
|
70
|
+
- Save, apply, hide and notes for every job, plus a daily digest by email, Slack, Discord, Telegram or webhook
|
|
71
|
+
- Search the web, or pull from Remote OK, Remotive, Arbeitnow, Himalayas, Jobicy, Working Nomads and your watchlist of companies
|
|
72
|
+
- Every job scored 0-10 (AI or Lite Mode), exports as JSON or CSV
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
## How to run it
|
|
77
|
+
|
|
78
|
+
### Option A: Docker (full stack)
|
|
79
|
+
|
|
80
|
+
You need Docker Engine 24+ or Docker Desktop, and about 2 GB of RAM (4 GB recommended).
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
cp .env.example .env
|
|
84
|
+
docker compose up --build
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- **scraper** (REST API) at `http://localhost:8000`
|
|
88
|
+
- **UI** at `http://localhost:8501`
|
|
89
|
+
|
|
90
|
+
Edit `.env` first if you have AI keys. Without any, Lite Mode works fine. The optional n8n automation engine lives under a separate profile: `docker compose --profile automation up`.
|
|
91
|
+
|
|
92
|
+
Then open `http://localhost:8501`, paste your CV, add keywords such as `senior python remote`, pick a provider (or stay in Lite Mode) and hit Start.
|
|
93
|
+
|
|
94
|
+
### Option B: Python package
|
|
95
|
+
|
|
96
|
+
The base install is small (requests, BeautifulSoup, ddgs) and gives you the CLI and all sources. Add extras for the rest:
|
|
97
|
+
|
|
98
|
+
| Install | Adds |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| `pip install jobsieve` | CLI, sources, SQLite, keyword scoring |
|
|
101
|
+
| `pip install "jobsieve[ai]"` | AI scoring with Anthropic (Groq and Gemini need no extra) |
|
|
102
|
+
| `pip install "jobsieve[api]"` | REST API (FastAPI, uvicorn) |
|
|
103
|
+
| `pip install "jobsieve[ui]"` | Streamlit dashboard |
|
|
104
|
+
| `pip install "jobsieve[browser]"` | Playwright, for fetching full pages |
|
|
105
|
+
| `pip install "jobsieve[mcp]"` | MCP server for AI agents |
|
|
106
|
+
| `pip install "jobsieve[all]"` | everything above |
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
pip install jobsieve
|
|
110
|
+
jobsieve run --lite --sources remoteok remotive arbeitnow himalayas jobicy workingnomads --keywords "python developer" --cv-file my_cv.txt
|
|
111
|
+
jobsieve export --format csv --out jobs.csv
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Useful flags for `run`: `--sources` (see below), `--sites` (domains for web search), `--keywords`, `--cv-file`, `--lite`, `--provider groq|anthropic|gemini`. Keys come from the environment (`GROQ_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`) or flags. If another run is already in progress the command says so and exits with code 1.
|
|
115
|
+
|
|
116
|
+
With the extras installed:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
python -m uvicorn jobsieve.api:api --port 8000
|
|
120
|
+
streamlit run "$(python -c 'import jobsieve.app as a; print(a.__file__)')"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Fetching full job pages with a headless browser needs `[browser]` and `playwright install chromium`. Without it, set `USE_PLAYWRIGHT=false` and the scraper uses plain HTTP requests.
|
|
124
|
+
|
|
125
|
+
Works on Python 3.10 to 3.12. Tested on Linux and in Docker; macOS and Windows have not been tested natively, so use Docker there.
|
|
126
|
+
|
|
127
|
+
### No Docker: one command
|
|
128
|
+
|
|
129
|
+
With `pip install "jobsieve[api,ui]"`, run `jobsieve start`. It starts the API and the dashboard together on your machine (`http://127.0.0.1:8501`) and stops both when you press Ctrl+C. `jobsieve start --demo` uses made-up demo jobs in `./demo-data`, so you can look around or take screenshots without touching your own data. The first time you open the dashboard it shows three steps: save your profile, add companies (there is a `gulf-mena` starter list of employers whose boards answered when it was made; `jobsieve watch starter gulf-mena`), and press Start.
|
|
130
|
+
|
|
131
|
+
### Fetch listings without any server (for scripts and AI agents)
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
jobsieve fetch --source remoteok remotive arbeitnow --keyword python "remote backend" --limit 20 --json
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
This downloads the feeds (cached on disk, see below), keeps listings matching your keywords, saves them to SQLite and prints a JSON array on stdout. Each record has `title`, `company`, `location`, `remote`, `salary`, `posted_at`, `url`, `description`, `source`, `attribution`, `job_hash` and `is_new`. Messages and errors go to stderr, so stdout is always valid JSON. Add `--no-store` to skip the database. Exit code: 0 on success (even if one source failed; its error is on stderr), 2 for an unknown source, 3 if every source failed. `jobsieve sources` lists the available sources. A caller that scores listings itself can write the result back with `jobsieve.db.set_score(job_hash, score, reasoning)`.
|
|
138
|
+
|
|
139
|
+
### Save a job from any website (browser extension)
|
|
140
|
+
|
|
141
|
+
The `extension/` folder holds a small browser extension. Open a job page on any site, click the button, and the job is saved to your own Jobsieve with the same eligibility check. It reads a page only when you click, sends it only to your local Jobsieve, and never fetches pages itself. See [extension/README.md](extension/README.md) for what it can read and how to install it.
|
|
142
|
+
|
|
143
|
+
### Let an AI agent use it (MCP)
|
|
144
|
+
|
|
145
|
+
`pip install "jobsieve[mcp]"`, then add `jobsieve mcp` to your agent as a stdio MCP server (for Claude Code: `claude mcp add jobsieve -- jobsieve mcp`; in other clients, a server with the command `jobsieve` and the argument `mcp`). Set `DATA_DIR` in its environment if your data lives somewhere other than `./data`. The agent gets ten tools: `search_jobs`, `list_jobs`, `get_job`, `set_score`, `set_status`, `save_application_draft`, `get_profile`, `watch_company`, `digest` and `list_sources`, so it can search, judge and track with its own model and no AI key of yours. Note that `get_profile` hands your agent your CV text, so use an agent you trust with it. [skills/jobsieve/SKILL.md](skills/jobsieve/SKILL.md) is a ready-made agent skill that describes the workflow and its rules.
|
|
146
|
+
|
|
147
|
+
## How scoring works
|
|
148
|
+
|
|
149
|
+
**AI mode.** When a key is set for the selected provider (in the sidebar, the CLI, or `.env`) the listing text, your CV and your keywords go to that provider and it returns a score and a short reason. Models are configurable with `GROQ_MODEL`, `GEMINI_MODEL` and `ANTHROPIC_MODEL`; check each provider's docs for current names, because providers retire models.
|
|
150
|
+
|
|
151
|
+
**Any model, including local ones.** Choose the `openai` provider for anything that speaks the OpenAI chat format: OpenAI, OpenRouter, or a model on your own machine through Ollama or LM Studio. Set `OPENAI_MODEL` (required), `OPENAI_BASE_URL` (default `https://api.openai.com/v1`; for Ollama `http://localhost:11434/v1`) and `OPENAI_API_KEY` (not needed for a local address). With a local model your CV never leaves your machine. If the server rejects JSON mode, Jobsieve retries once without it.
|
|
152
|
+
|
|
153
|
+
**Keeping AI cost down.** The model is asked only about jobs that are not already marked not eligible, only when the listing, your CV, your keywords or your profile changed since the last AI score, and for at most `AI_MAX_PER_RUN` jobs per run (default 100). The rest get the free Lite score, and the run log says when the cap was reached.
|
|
154
|
+
|
|
155
|
+
**Help applying.** For one job, `jobsieve tailor <id> --provider openai --out letter.md` (or the "Draft application" box under a job, or `POST /jobs/{hash}/tailor`) asks your model for CV rewrites that fit the job, the requirements your CV does not show, and a cover letter under 250 words. The prompt forbids inventing experience, and any number in the draft that is not in your CV or the listing is flagged "check before sending". It is a draft: read it before you send anything. Results are saved with the job, and `GET /jobs/{hash}/tailor.md` returns them as Markdown. Needs your CV in your profile.
|
|
156
|
+
|
|
157
|
+
**If AI scoring fails** (bad key, retired model, rate limit, unparseable reply) the listing falls back to the Lite score, the reasoning starts with `ai_failed: <reason>`, the failure is logged, and the dashboard shows a warning with the count. A failed re-run never overwrites a score that AI already gave.
|
|
158
|
+
|
|
159
|
+
**Lite Mode.** Free and offline. The score is the number of your keywords found in the listing, plus up to 3 bonus points when several distinct terms from your CV (skills, tools) also appear in it, capped at 10. The reasoning shows `matched_keywords=N cv_terms=M`. Limits: it is word matching, not understanding, so it cannot judge seniority, location or context, and it only sees the search result snippet unless full-page fetching is on.
|
|
160
|
+
|
|
161
|
+
## Sources
|
|
162
|
+
|
|
163
|
+
| Source | What it is | Notes |
|
|
164
|
+
| --- | --- | --- |
|
|
165
|
+
| `ddg` (default) | DuckDuckGo `site:` search for each site and keyword | Gives title, link and a snippet. With no sites it searches a built-in list of job boards (Greenhouse, Lever, Ashby, Workable, SmartRecruiters, We Work Remotely, RemoteOK, Wellfound); override with `config/sites.txt` or `DEFAULT_SITES`. |
|
|
166
|
+
| `remoteok` | [Remote OK](https://remoteok.com) public API | Full descriptions, remote jobs |
|
|
167
|
+
| `remotive` | [Remotive](https://remotive.com) public API | Full descriptions, remote jobs. Remotive asks for at most 4 requests a day, so its feed is cached for 6 hours. |
|
|
168
|
+
| `arbeitnow` | [Arbeitnow](https://www.arbeitnow.com) public API | Full descriptions, mostly Europe, remote flag |
|
|
169
|
+
| `boards` | Career boards of the companies on your watchlist: Greenhouse, Lever, Ashby, SmartRecruiters | Straight from the employer. Add companies with `jobsieve watch add greenhouse careem` (the name in the board URL), see them with `watch list`, test them with `watch check`, `jobsieve discover --keyword "software engineer" --place Dubai` to find companies by web search (they are marked "discovered"), `jobsieve watch from-page https://company.com/careers` to read a careers page and find the board it uses, or use the Watchlist tab (or `GET/POST /watchlist`, `DELETE /watchlist/{board}/{company}`). Companies are also added automatically when a web-search run returns a link to one of these boards. Cached 6 hours per company. SmartRecruiters gives titles and locations only, no description. |
|
|
170
|
+
| `web` | Pages you list with `jobsieve watch add-page URL` | Reads schema.org job data (JSON-LD) on the page, or on job pages it links to (25 at most). Follows robots.txt, waits 2 s or more between requests to a site, stops for the run at a bot check (403, 429 or a CAPTCHA page), never leaves the site. LinkedIn, Indeed and Glassdoor are refused. Pages without structured job data give nothing. Cached 12 hours. Robots.txt is not permission: check each site's terms yourself. |
|
|
171
|
+
| `himalayas` | [Himalayas](https://himalayas.app) public API | Remote jobs with the countries each one accepts, salary and pay period. Newest 200 jobs (`HIMALAYAS_PAGES`, 20 per page), cached 24 hours as Himalayas refreshes daily. |
|
|
172
|
+
| `jobicy` | [Jobicy](https://jobicy.com) public API | Remote jobs with the countries each one accepts and salary. Jobicy asks for a credit and a link to the original job. |
|
|
173
|
+
| `workingnomads` | [Working Nomads](https://www.workingnomads.com) public API | Remote jobs with a region ("Global", "North America") |
|
|
174
|
+
|
|
175
|
+
Feed sources are downloaded whole, cached in `DATA_DIR/cache` (1 hour, Remotive 6 hours, change with `SOURCE_CACHE_TTL_SECONDS`) and filtered by your keywords on your machine, so repeated runs make few requests. If a feed is unreachable the last cached copy is used. A source that fails is reported and skipped; the run continues. Select sources with `--sources`, the dashboard's Sources box, or `"sources": ["remoteok", "remotive"]` in `POST /run`.
|
|
176
|
+
|
|
177
|
+
**Tracking.** Every job has a status: new, saved, applied, interviewing, offer, rejected or hidden, with a note. Use the Save / Applied / Hide buttons and the Inbox, Saved, Applied, Rejected and Hidden views in the dashboard, `jobsieve mark <id> applied --note "sent CV"` and `jobsieve jobs --status saved` on the command line, or `PATCH /jobs/{job_hash}` with `{"status": "applied", "notes": "..."}`. Hidden jobs stay hidden when they appear again, and alerts skip jobs you have applied to or hidden, duplicates, closed jobs and jobs marked not eligible. "Hide company" adds the company to your profile's skip list. `GET /stats?days=7` counts status changes. CSV exports include status and notes, and cells that start with `=`, `+`, `-` or `@` are prefixed with an apostrophe so spreadsheets do not run them.
|
|
178
|
+
|
|
179
|
+
**Freshness.** Each job shows plain facts: how long ago it was posted, how long you have seen it, reposts (the posted date moved later), and a closing date where the source gives one (Himalayas, Greenhouse, pages with `validThrough`). The label is new (up to 3 days), recent (14), old (45) or stale, by posted date, or by first-seen date if there is none. A job on a watched company board that disappears from the board is marked closed; feeds that only show their newest jobs are not used for this. Closed and expired jobs are hidden unless you ask (`include_closed=true`). These are signals, not a verdict that a job is fake. Jobs are ordered eligible first, then by score, then newest.
|
|
180
|
+
|
|
181
|
+
**Duplicates.** The same job often appears on several sources. Jobs with the same company, title and city are shown once, preferring the company's own board and then the fuller description, with "also on ..." listing the others. Nothing is deleted. Jobs with no city are never merged, because they can't be told apart safely.
|
|
182
|
+
|
|
183
|
+
**Attribution and terms.** The full table, with each source's endpoint, cache time and terms, is in [docs/sources.md](docs/sources.md). Remote OK and Remotive require a link back and naming them as the source; every listing keeps its `source` and original URL and the dashboard shows "via Remote OK" and so on. Remotive also forbids submitting its jobs to other job sites. This tool stores listings locally for your own search, so do not republish them. LinkedIn and Indeed are not scraped.
|
|
184
|
+
|
|
185
|
+
Copy the `config/*.txt.example` files to set default sites, keywords and CV.
|
|
186
|
+
|
|
187
|
+
## Run it on a schedule and get a digest
|
|
188
|
+
|
|
189
|
+
Save a profile first (`jobsieve profile set ...`), and add companies with `jobsieve watch add`. Then `jobsieve run` with no flags uses your profile's keywords, CV and sources (plus your watchlist and listed pages when you have any).
|
|
190
|
+
|
|
191
|
+
- **Docker or the API server:** set `RUN_EVERY_HOURS=6` in `.env`.
|
|
192
|
+
- **Anywhere else:** `jobsieve schedule --every-hours 6` in a terminal, or cron: `0 7 * * * cd /path/to/data-folder && jobsieve run --lite`. For systemd, run `jobsieve schedule --every-hours 6` as a service.
|
|
193
|
+
- **Digest:** after each run, new matches that score at least `MIN_SCORE_NOTIFY` go to your webhook (Slack and Discord addresses get their own format), email or Telegram, each labelled eligible, unclear or not checked. Jobs you applied to or hid, duplicates, closed jobs and jobs marked not eligible are left out. `jobsieve digest` prints the pending list as Markdown without sending; `jobsieve digest --send` sends it.
|
|
194
|
+
- **In the dashboard:** a strip shows how many new eligible jobs arrived since your last visit, with a Mark as seen button.
|
|
195
|
+
|
|
196
|
+
## Environment variables
|
|
197
|
+
|
|
198
|
+
| Variable | What it does | Default |
|
|
199
|
+
| --- | --- | --- |
|
|
200
|
+
| `GROQ_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY` | AI scoring keys | empty |
|
|
201
|
+
| `GROQ_MODEL` | Groq model | `llama-3.3-70b-versatile` |
|
|
202
|
+
| `GEMINI_MODEL` | Gemini model | `gemini-3.6-flash` |
|
|
203
|
+
| `ANTHROPIC_MODEL` | Claude model | `claude-haiku-5-5` |
|
|
204
|
+
| `OPENAI_BASE_URL`, `OPENAI_MODEL`, `OPENAI_API_KEY` | Any OpenAI-compatible server or local model (provider `openai`) | OpenAI address, no model, no key |
|
|
205
|
+
| `AI_MAX_PER_RUN` | Most model calls in one run | `100` |
|
|
206
|
+
| `API_TOKEN` | If set, every API endpoint except `/health` requires `Authorization: Bearer <token>` | empty (open) |
|
|
207
|
+
| `DATA_DIR` | Where SQLite, status and logs live | `./data` |
|
|
208
|
+
| `CONFIG_DIR` | Where `sites.txt`, `keywords.txt`, `cv.txt` are read from | `./config` |
|
|
209
|
+
| `SCRAPER_URL` | API address the UI talks to | `http://localhost:8000` |
|
|
210
|
+
| `DEFAULT_SITES` | Comma-separated domains used when no sites are given | built-in list |
|
|
211
|
+
| `SOURCE_CACHE_TTL_SECONDS` | Override how long downloaded feeds are cached | per source (1h, Remotive 6h) |
|
|
212
|
+
| `SOURCE_FETCH_LIMIT` | Maximum listings taken from each feed per run | `100` |
|
|
213
|
+
| `REQUEST_DELAY_SECONDS` | Politeness delay between requests | `2.0` |
|
|
214
|
+
| `RETRY_MAX_ATTEMPTS` | Retries for a failed search or fetch | `5` |
|
|
215
|
+
| `RETRY_BASE_SECONDS` / `RETRY_MAX_SECONDS` | Retry backoff start and ceiling | `2.0` / `16` |
|
|
216
|
+
| `USE_PLAYWRIGHT` | Fetch full pages with a headless browser | `true` |
|
|
217
|
+
| `LOCK_STALE_SECONDS` | A run with no heartbeat for this long is treated as dead | `900` |
|
|
218
|
+
| `MIN_SCORE_NOTIFY` | Minimum score (0-10) that triggers an alert | `7` |
|
|
219
|
+
| `NOTIFICATION_WEBHOOK` | Webhook URL for alerts | empty |
|
|
220
|
+
| `RUN_EVERY_HOURS` | If set (for example `6`), the API server runs a search on that timer using your saved profile, sources and watchlist. Lite scoring unless the provider's key is set. A run already in progress is never doubled. | empty (off) |
|
|
221
|
+
| `SCHEDULE_PROVIDER` | AI provider for scheduled runs (`groq`, `anthropic`, `gemini`) | `groq` |
|
|
222
|
+
| `TELEGRAM_BOT_TOKEN`, `TELEGRAM_CHAT_ID` | Send alerts to a Telegram chat | empty |
|
|
223
|
+
| `EMAIL_HOST`, `EMAIL_PORT`, `EMAIL_USER`, `EMAIL_PASS`, `EMAIL_TO` | SMTP settings for email alerts (port default `587`) | empty |
|
|
224
|
+
|
|
225
|
+
`.env.example` lists the same variables with the same defaults.
|
|
226
|
+
|
|
227
|
+
## API for power users
|
|
228
|
+
|
|
229
|
+
The scraper exposes a FastAPI server. The UI talks to it, and you can too. If you set `API_TOKEN`, add `-H "Authorization: Bearer $API_TOKEN"` to every call except `/health`.
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
curl -X POST http://localhost:8000/run \
|
|
233
|
+
-H "Content-Type: application/json" \
|
|
234
|
+
-d '{"provider":"groq","lite_mode":true,"sources":["ddg","remoteok"],"sites":["example.com"],"keywords":["python"],"cv_text":"developer"}'
|
|
235
|
+
|
|
236
|
+
curl http://localhost:8000/status
|
|
237
|
+
curl "http://localhost:8000/jobs?limit=50&run=latest"
|
|
238
|
+
curl http://localhost:8000/export/csv > jobs.csv
|
|
239
|
+
curl -X POST http://localhost:8000/pause
|
|
240
|
+
curl -X POST http://localhost:8000/resume
|
|
241
|
+
curl -X POST http://localhost:8000/stop
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
`/jobs` and the export endpoints return the all-time top results by default; add `run=latest` for just the most recent run. `GET /config` reports which provider keys the server has (never the keys themselves). A run that crashed is detected: the lock expires, `/status` reports `interrupted`, and the next `/run` starts normally.
|
|
245
|
+
|
|
246
|
+
## Privacy
|
|
247
|
+
|
|
248
|
+
Your CV, profile and jobs stay in files on your machine. The full list of what can leave it, and when, is in [docs/privacy.md](docs/privacy.md).
|
|
249
|
+
|
|
250
|
+
## Security: read this before putting it on the internet
|
|
251
|
+
|
|
252
|
+
By default the API has **no authentication**, which is fine on `localhost`. If it is reachable from anywhere else, anyone who can reach it can start runs that use your AI keys and read your results.
|
|
253
|
+
|
|
254
|
+
- Set a long random `API_TOKEN`.
|
|
255
|
+
- `render.yaml` and `railway.json` deploy one service (the combined image) with the API bound to `127.0.0.1`, so only the UI can reach it. The Streamlit UI itself has no login, so put it behind your platform's access controls or a proxy with auth. These two files are untested on the real platforms; check them on your own account.
|
|
256
|
+
- Never commit `.env`. It is gitignored. If a key was ever pushed, rotate it.
|
|
257
|
+
- Report vulnerabilities privately, see [SECURITY.md](SECURITY.md).
|
|
258
|
+
|
|
259
|
+
## Makefile shortcuts
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
make build
|
|
263
|
+
make up
|
|
264
|
+
make down
|
|
265
|
+
make logs
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Contributing
|
|
269
|
+
|
|
270
|
+
Issues and PRs are welcome, see [CONTRIBUTING.md](CONTRIBUTING.md). If you use this and hit something, opening an issue is the single most useful thing you can do; this is a solo project so far and every report helps.
|
|
271
|
+
|
|
272
|
+
If you find it useful, a star helps other people find it too.
|