rent-scraper 1.0.18 → 1.0.19
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/dist/bin/run-rent-scraper.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import s from"minimist";import{log as i}from"@clack/prompts";import{parseError as t}from"@rent-scraper/utils";import{runRentScraper as m}from"../index.mjs";import"@rent-scraper/utils/config";import"@rent-scraper/create-config";import"@rent-scraper/scrape-listings";const r=s(process.argv.slice(2)),p=r.source??"zillow",c=r["config-file"];m(p,c).then(()=>process.exit(0)).catch(o=>{const{message:e}=t(o);i.error(e),process.exit(1)});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{checkForConfigFile as a,getConfigFilePath as
|
|
1
|
+
import{checkForConfigFile as a,getConfigFilePath as t}from"@rent-scraper/utils/config";import{runCreateConfig as f,runCheckConfig as r,runGenerateRegionIds as c}from"@rent-scraper/create-config";import{runScrapeListings as g}from"@rent-scraper/scrape-listings";import{log as o,confirm as s,isCancel as l,cancel as u}from"@clack/prompts";async function m(e,i){if(await a(e,i)){const n=i??await t(e);o.success(`Using config file found at ${n}`)}else{if(i){const n=await s({message:`No config file found at ${i}. Would you like to create a new config file?`});if(l(n)||!n)return u("Create config canceled. Please try again with a different config file."),process.exit(1)}else o.warning("No config file found."),o.info("");await f(e)}await r(e),await c(e),await g()}export{m as runRentScraper};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rent-scraper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dayjs": "^1.11.13",
|
|
28
28
|
"minimist": "^1.2.8",
|
|
29
29
|
"picocolors": "^1.1.1",
|
|
30
|
-
"@rent-scraper/
|
|
31
|
-
"@rent-scraper/
|
|
32
|
-
"@rent-scraper/
|
|
33
|
-
"@rent-scraper/
|
|
34
|
-
"@rent-scraper/
|
|
30
|
+
"@rent-scraper/api": "1.0.19",
|
|
31
|
+
"@rent-scraper/scrape-listings": "1.0.19",
|
|
32
|
+
"@rent-scraper/browser-server": "1.0.19",
|
|
33
|
+
"@rent-scraper/create-config": "1.0.19",
|
|
34
|
+
"@rent-scraper/utils": "1.0.19"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/minimist": "^1.2.5",
|