rent-scraper 1.0.0 → 1.0.6
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.
- package/README.md +39 -0
- package/package.json +37 -42
- package/dist/bin/run-rent-scraper.d.mts +0 -1
- package/dist/bin/run-rent-scraper.mjs +0 -2
- package/dist/index.d.mts +0 -5
- package/dist/index.mjs +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# rent-scraper
|
|
2
|
+
|
|
3
|
+
Scrape data from rental listings
|
|
4
|
+
|
|
5
|
+
### Prerequisites
|
|
6
|
+
|
|
7
|
+
- Node.js >= 22
|
|
8
|
+
- pnpm package manager
|
|
9
|
+
- Google Chrome or Brave browser installed
|
|
10
|
+
|
|
11
|
+
### Setup Steps
|
|
12
|
+
|
|
13
|
+
1. Install pnpm globally (if not already installed):
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g pnpm
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Clone the repository and install dependencies:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
git clone [repository-url]
|
|
23
|
+
cd rent-scraper
|
|
24
|
+
pnpm install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. Build the project:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm run build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
### Running the Scraper
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm run rent-scraper
|
|
39
|
+
```
|
package/package.json
CHANGED
|
@@ -1,53 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rent-scraper",
|
|
3
|
-
"version": "1.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)",
|
|
3
|
+
"version": "1.0.6",
|
|
12
4
|
"license": "MIT",
|
|
13
|
-
"description": "
|
|
5
|
+
"description": "Tools for scraping rent data",
|
|
14
6
|
"files": [
|
|
15
7
|
"dist"
|
|
16
8
|
],
|
|
17
|
-
"
|
|
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
|
-
},
|
|
9
|
+
"type": "module",
|
|
45
10
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"
|
|
11
|
+
"@eslint/js": "^9.30.1",
|
|
12
|
+
"@stylistic/eslint-plugin": "^5.1.0",
|
|
13
|
+
"eslint": "^9.30.1",
|
|
14
|
+
"globals": "^16.3.0",
|
|
15
|
+
"husky": "^9.1.7",
|
|
16
|
+
"lint-staged": "^16.1.2",
|
|
17
|
+
"prettier": "^3.6.2",
|
|
18
|
+
"typescript-eslint": "^8.35.1"
|
|
49
19
|
},
|
|
50
20
|
"engines": {
|
|
51
21
|
"node": "22.x"
|
|
22
|
+
},
|
|
23
|
+
"lint-staged": {
|
|
24
|
+
"*.{ts,js}": [
|
|
25
|
+
"eslint"
|
|
26
|
+
],
|
|
27
|
+
"*.{json,md}": [
|
|
28
|
+
"prettier --write"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "pnpm run --parallel build",
|
|
33
|
+
"browser-server:dev": "pnpm run --filter browser-server dev",
|
|
34
|
+
"browser-server": "pnpm run --silent --filter browser-server start",
|
|
35
|
+
"check-config:dev": "pnpm run --filter create-config check-config:dev",
|
|
36
|
+
"check-config": "pnpm run --silent --filter create-config check-config",
|
|
37
|
+
"scrape-listings:dev": "pnpm run --filter scrape-listings dev",
|
|
38
|
+
"scrape-listings": "pnpm run --silent --filter scrape-listings start",
|
|
39
|
+
"create-config:dev": "pnpm run --filter create-config dev",
|
|
40
|
+
"create-config": "pnpm run --silent --filter create-config start",
|
|
41
|
+
"rent-scraper:dev": "pnpm run --filter rent-scraper dev",
|
|
42
|
+
"rent-scraper": "pnpm run --silent --filter rent-scraper start",
|
|
43
|
+
"typecheck": "pnpm run --parallel typecheck",
|
|
44
|
+
"lint": "pnpm run --parallel lint",
|
|
45
|
+
"lint:fix": "pnpm run --parallel lint:fix",
|
|
46
|
+
"release": "pnpm --parallel prepublish && bumpp -r && pnpm publish -r --no-git-checks --access=public"
|
|
52
47
|
}
|
|
53
|
-
}
|
|
48
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,2 +0,0 @@
|
|
|
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)});
|
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|