Take a Platsbanken region in the API and the CLI, and trust its and Teamtailor's posted date
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
43f0210b88
commit
0458c9c172
4 files changed
+12
-5
No files matched your search
+4
-2
@@ -95,7 +95,7 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
searches_sub = searches.add_subparsers(dest="action", required=True)
|
||||
search_add = searches_sub.add_parser(
|
||||
"add", help="run a search once, then save it for every pull (or update it)")
|
||||
search_add.add_argument("provider", choices=["jobindex", "adzuna"])
|
||||
search_add.add_argument("provider", choices=["jobindex", "adzuna", "platsbanken"])
|
||||
search_add.add_argument("name", help='what to call it, e.g. "Copenhagen backend"')
|
||||
search_add.add_argument("--q", required=True,
|
||||
help="the query, in the provider's own syntax")
|
||||
@@ -104,6 +104,8 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
search_add.add_argument("--country", default="",
|
||||
help="adzuna country: gb, de, nl, fr, at, be, es, it, pl, ch")
|
||||
search_add.add_argument("--where", default="", help="adzuna place, e.g. Berlin")
|
||||
search_add.add_argument("--region", default="",
|
||||
help="platsbanken län id: CaRE_1nn_cSU is Skåne, empty all of Sweden")
|
||||
search_add.add_argument("--pages", type=int, default=0,
|
||||
help="result pages per pull (default 5, at most 10)")
|
||||
searches_sub.add_parser("list", help="every saved search and its open roles")
|
||||
@@ -423,7 +425,7 @@ def add_search(config: config_mod.Config, store: Store, args: argparse.Namespace
|
||||
try:
|
||||
params = jobs.sources.search_params(args.provider, args.q, area=args.area,
|
||||
country=args.country, where=args.where,
|
||||
pages=args.pages)
|
||||
region=args.region, pages=args.pages)
|
||||
sub, found, complete = jobs.sources.save_search(config, store, args.provider, args.name,
|
||||
params)
|
||||
except ValueError as exc:
|
||||
|
||||
Reference in new issue
Block a user