1.0.11 • Published 3 years ago

smoothgooglesearch v1.0.11

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

smoothgooglesearch

A simple library to get url's from google, as simple as possible.


Sample code to start with

Use npm install smoothgooglesearch to install the package!

//here we initialise the constants google (which imports the package) and search(which will be used to get url's)
const google = require('smoothgooglesearch')
const search = new google.Search(); 

//here we make a variable called "googleUrl"
let googleUrl = search.google('#textforsearching')
let youtubeUrl = search.youtube('#textforsearching')
let mapsurl = search.googleMaps('#textforsearching')
//for translateUrl you have to give parameters
/** 
 * @params text - Text to translate.
 * @params from - Language to translate from, it will be auto if not specified.
 * @params to - Language to translate to, it will be auto if not specified.
*/
let translateUrl = search.googleTranslate({text : '#textforsearching', from: 'en', to: 'es'})
let googlePlayStoreUrl = search.googlePlayStore('#textforsearching', 'apps') //'#category(`apps` used here) - can be apps, books or movies, if not specified, it will search for all categories.'
let gmailUrl = search.gmail('inbox') //'#field(`inbox` used here) - gmail field --> inbox, starred, imp, etc.'
console.log(googleUrl, youtubeUrl, mapsurl, translateUrl, googlePlayStoreUrl, gmailUrl)
1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago