google-that
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -87,3 +87,3 @@ #!/usr/bin/env node | ||
doSearch(page) { | ||
return search({ query: this.query, page: pageToGoogleQueryPage(page), filterResults: this.inputOptions.searchType }); | ||
return search({ query: this.query, page: pageToGoogleQueryPage(page), filterResults: this.inputOptions.searchType, safeMode: this.inputOptions.safeMode }); | ||
} | ||
@@ -101,3 +101,3 @@ }; | ||
function getTXTFormat(results) { | ||
let startTxt = stripIndents(html)` | ||
const startTxt = stripIndents(html)` | ||
${results.map( | ||
@@ -455,3 +455,3 @@ (page, i) => html` | ||
const results = await searchQuery.search(); | ||
const saveAt = savePath.replace("%query%", slugify(query, { lower: false })).replace("%format%", resultType.toLowerCase()); | ||
const saveAt = savePath.replace("%query%", slugify.default(query, { lower: true, strict: true, remove: /[*+~.()'"!:@]/g })).replace("%format%", resultType.toLowerCase()); | ||
const pathName = path.join(process.cwd(), saveAt); | ||
@@ -458,0 +458,0 @@ if (!results.length) { |
{ | ||
"name": "google-that", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "CLI tool to scrape google search results without a api key", | ||
"repository": "typicalninja/google-sr", | ||
"homepage": "https://typicalninja.github.io/google-sr/", | ||
"homepage": "https://g-sr.vercel.app/google/that", | ||
"exports": "./dist/index.js", | ||
@@ -31,3 +31,3 @@ "bin": "./dist/index.js", | ||
"slugify": "^1.6.6", | ||
"google-sr": "3.1.0" | ||
"google-sr": "3.2.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "engines": { |
# google-that | ||
[![npm downloads](https://img.shields.io/npm/dw/google-that)](https://www.npmjs.com/package/google-that) | ||
[![GitHub issues](https://img.shields.io/github/issues/typicalninja/google-sr)](https://github.com/typicalninja/google-sr/issues) | ||
[![NPM](https://img.shields.io/npm/l/google-that)](https://www.npmjs.com/package/google-that) | ||
[![npm version](https://img.shields.io/npm/v/google-that)](https://www.npmjs.com/package/google-that) | ||
[![Discord](https://img.shields.io/discord/807868280387665970)](https://discord.gg/ynwckXS9T2) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/typicalninja/google-sr/badge)](https://www.codefactor.io/repository/github/typicalninja/google-sr) | ||
CLI tool to scrape google search results without an api key ๐. | ||
* View documentation [here](https://g-sr.vercel.app/google/selectors) | ||
* Come chat with us on [our discord](https://discord.gg/ynwckXS9T2) | ||
## Install ๐ฆ | ||
@@ -27,3 +38,3 @@ | ||
# Usage | ||
## Usage | ||
@@ -38,10 +49,11 @@ If installation succeeded you can proceed to this step, run the following command in a **NEW** terminal window **without** any arguments | ||
this should come up with bunch of question answer these to use the tool. | ||
This will start the google-that process. | ||
# Related projects | ||
## Related projects ๐ฅ | ||
* [google-sr](https://github.com/typicalninja/google-sr) - This project is a wrapper around google-sr | ||
* [google-sr](https://g-sr.vercel.app/google/sr) - Core project used in google-that | ||
* [google-sr-selectors](https://g-sr.vercel.app/google/selectors) - Selectors for google search results used by google-sr | ||
# Disclaimer | ||
## Disclaimer | ||
@@ -56,4 +68,4 @@ This is not sponsored, supported, or affiliated with Google Inc. | ||
# License | ||
## License | ||
This repository and the code inside it is licensed under the Apache-2.0 License. Read [LICENSE](./LICENSE) for more information. |
32362
68
+ Addedgoogle-sr@3.2.1(transitive)
+ Addedgoogle-sr-selectors@0.0.2(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedgoogle-sr@3.1.0(transitive)
Updatedgoogle-sr@3.2.1