rent-scraper 1.0.0

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.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import e from"minimist";import{log as s}from"@clack/prompts";import{parseError as t}from"@rent-scraper/utils";import{runRentScraper as i}from"../index.mjs";import"@rent-scraper/utils/config";import"@rent-scraper/create-config";import"@rent-scraper/scrape-listings";const m=e(process.argv.slice(2)),p=m.source??"zillow";i(p).then(()=>process.exit(0)).catch(r=>{const{message:o}=t(r);s.error(o),process.exit(1)});
@@ -0,0 +1,5 @@
1
+ import { ListingsSource } from '@rent-scraper/api';
2
+
3
+ declare function runRentScraper(source: ListingsSource): Promise<void>;
4
+
5
+ export { runRentScraper };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{checkForConfigFile as a}from"@rent-scraper/utils/config";import{runCreateConfig as n,runCheckConfig as i,runGenerateRegionIds as t}from"@rent-scraper/create-config";import{runScrapeListings as e}from"@rent-scraper/scrape-listings";async function o(r){await a(r)||await n(),await i(r),await t(r),await e()}export{o as runRentScraper};
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "rent-scraper",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.mts",
8
+ "default": "./dist/index.mjs"
9
+ }
10
+ },
11
+ "author": "Max Stein <maxwell.stein@gmail.com> (https://maxstein.net)",
12
+ "license": "MIT",
13
+ "description": "Scrape data from rental listings from the command line",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "unbuild",
19
+ "start": "node --env-file-if-exists=.env dist/bin/run-rent-scraper.mjs",
20
+ "dev": "tsx --env-file-if-exists=.env src/bin/run-rent-scraper.ts",
21
+ "typecheck": "tsc --noEmit",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint --fix .",
24
+ "prepublish": "npm run lint && npm run build",
25
+ "release": "npm run lint && npm run build && bumpp && npm publish"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/rent-brigade/rent-scraper.git",
30
+ "directory": "packages/cli"
31
+ },
32
+ "dependencies": {
33
+ "@clack/prompts": "alpha",
34
+ "@rent-scraper/api": "workspace:*",
35
+ "@rent-scraper/browser-server": "workspace:*",
36
+ "@rent-scraper/create-config": "workspace:*",
37
+ "@rent-scraper/scrape-listings": "workspace:*",
38
+ "@rent-scraper/utils": "workspace:*",
39
+ "axios": "^1.10.0",
40
+ "bumpp": "^10.2.3",
41
+ "dayjs": "^1.11.13",
42
+ "minimist": "^1.2.8",
43
+ "picocolors": "^1.1.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/minimist": "^1.2.5",
47
+ "tsx": "^4.20.3",
48
+ "unbuild": "^3.5.0"
49
+ },
50
+ "engines": {
51
+ "node": "22.x"
52
+ }
53
+ }