Socket
Socket
Sign inDemoInstall

search-script

Package Overview
Dependencies
148
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    search-script

Economy System, Chat System and more (Under Development..)


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

search-script v0.0.1

MADE İN TURKEY HELPER MODULE

for download

npm install --save erehizm

EXAMPLE

 eco.products()
    /* if any no data Console Error:
   Error: No Product ./<file_name>.json
  if there is Data is shown
   */
   eco.send("123",10)
 /* MONEY INCREASE */
 eco.back("123",10)
 /* MONEY Decrease */
n3.info("https://www.youtube.com/watch?v=1UwTI4PkI4g","REACTS") //n3.info('...',"Title") => K.E.F.Y.
SEARCH FUNCTİONS
SearchVideo = await scs.SearchVideo("<yt-search>")
 getVideo = await scs.VideoGet("<yt-video-url>")
 SpotifySearch = await scs.GetSpotify("<spotify-music-url>")
//Tested
const eco = new SearchScript.Economy({file:"./datas",shop:"ScriptShop"});


///ECONOMY
   eco.products()
    /* if any no data Error:
   Error: No Product ./<file_name>.json
  if there is Data is shown
   */
 eco.send("123",10)
 /* MONEY INCREASE */
 eco.back("123",10)
 /* MONEY Decrease */

 ///SEARCH
 
const scs = new SearchScript.Search({"Youtube":"YOUTUBE_APİ_KEY"});

 await scs.SearchVideo("<Youtube-Search>") //SEARCH
 await scs.VideoGet("<Youtube-Video-URL>") //VİDEO İNFOS
 await scs.GetSpotify("<Spotify-url>") // spotify music url infos

Search Script Helper Module

//delete api
====> EXAMPLE
const SearchScript = require("search-script")
const Search = new SearchScript.Search({"Youtube":"You_Key"});
const eco = new SearchScript.Economy({file:"./datas",shop:"ScriptShop"});
const elements = {
    search:"riv riv riv",
    spotify:"https://open.spotify.com/track/5nTtCOCds6I0PHMNtqelas",
    url:"https://www.youtube.com/watch?v=GIkKGW628aQ",
    id:"GIkKGW628aQ"
}
async function Search() {
    let SearchVideo = await SearchScript.SearchVideo(elements.search)
    console.log(SearchVideo)
    /*
    {
  id: { kind: 'youtube#video', videoId: 'zAhw6qRatzA' },
  kind: 'youtube#searchResult',
  publication: '2021-08-26T10:04:31Z',
  channelId: 'Çakal - Topic',
  channel: {
    name: 'Çakal - Topic',
    id: 'UC_gGiwBDPNM19olJODDP1Rw',
    url: 'https://www.youtube.com/channel/UC_gGiwBDPNM19olJODDP1Rw'
  },
  url: 'https://www.youtube.com/watch/[object Object]',
  title: 'Riv Riv Riv',
  description: 'Provided to YouTube by Netd Müzik Video Dijital Platform A.Ş. Riv Riv Riv · cakal · cakal · Emirhan Çakal · Berk Erdemanar ...',
  thumbnail: 'https://i.ytimg.com/vi/zAhw6qRatzA/0.jpg',
  thumbnails: {
    default: {
      url: 'https://i.ytimg.com/vi/zAhw6qRatzA/default.jpg',
      width: 120,
      height: 90
    },
    medium: {
      url: 'https://i.ytimg.com/vi/zAhw6qRatzA/mqdefault.jpg',
      width: 320,
      height: 180
    },
    high: {
      url: 'https://i.ytimg.com/vi/zAhw6qRatzA/hqdefault.jpg',
      width: 480,
      height: 360
    }
  }
}
    */
    let getVideo = await SearchScript.VideoGet(elements.url)
    console.log(getVideo)
    /*
    {
  id: 'GIkKGW628aQ',
  kind: 'youtube#video',
  publication: '2021-02-26T17:48:41Z',
  channelId: 'Coolio - Topic',
  channel: {
    name: 'Coolio - Topic',
    id: 'UC48nZNzBVu13HPwJ3upxQnQ',
    url: 'https://www.youtube.com/channel/UC48nZNzBVu13HPwJ3upxQnQ'
  },
  url: 'https://www.youtube.com/watch/GIkKGW628aQ',
  title: "Gangsta's Paradise",
  description: 'Provided to YouTube by Tommy Boy Music, LLC\n' +
    '\n' +
    "Gangsta's Paradise · Coolio · L.V.\n" +
    '\n' +
    "Gangsta's Paradise\n" +
    '\n' +
    '℗ 1995 Tommy Boy Music, LLC\n' +
    '\n' +
    'Released on: 2020-09-25\n' +
    '\n' +
    'Producer: Doug Rasheed\n' +
    'Composer: Stevie Wonder\n' +
    'Composer  Lyricist: Larry Sanders\n' +
    'Composer  Lyricist: Doug Rasheed\n' +
    'Composer  Lyricist: Artis Ivey Jr.\n' +
    '\n' +
    'Auto-generated by YouTube.',
  thumbnail: 'https://i.ytimg.com/vi/GIkKGW628aQ/0.jpg',
  thumbnails: {
    default: {
      url: 'https://i.ytimg.com/vi/GIkKGW628aQ/default.jpg',
      width: 120,
      height: 90
    },
    medium: {
      url: 'https://i.ytimg.com/vi/GIkKGW628aQ/mqdefault.jpg',
      width: 320,
      height: 180
    },
    high: {
      url: 'https://i.ytimg.com/vi/GIkKGW628aQ/hqdefault.jpg',
      width: 480,
      height: 360
    },
    standard: {
      url: 'https://i.ytimg.com/vi/GIkKGW628aQ/sddefault.jpg',
      width: 640,
      height: 480
    },
    maxres: {
      url: 'https://i.ytimg.com/vi/GIkKGW628aQ/maxresdefault.jpg',
      width: 1280,
      height: 720
    }
  },
  hashtag: [ 'Coolio', 'L.V.', "Gangsta's Paradise" ]
}
    */
   let SpotifySearch = await SearchScript.GetSpotify(elements.spotify)
      console.log(SpotifySearch)
      /*
      {
  name: 'Immaterial',
  type: 'track',
  uri: 'spotify:track:6GoLARmR2OZl2EldehFrsA',
  id: '6GoLARmR2OZl2EldehFrsA',
  dominantColor: '#785870',
  popularity: 57,
  track_number: 8,
  disc_number: 1,
  duration_ms: 232806,
  external_ids: { isrc: 'AUFF01800039' },
  external_urls: { spotify: 'https://open.spotify.com/track/6GoLARmR2OZl2EldehFrsA' },
  Playlist: {
    name: 'SOPHIE',
    url: 'https://open.spotify.com/album/6ukR0pBrFXIXdQgLWAhK7J',
    author: "OIL OF EVERY PEARL'S UN-INSIDES",
    type: 'album',
    uri: 'spotify:album:6ukR0pBrFXIXdQgLWAhK7J',
    id: '5a2w2tgpLwv26BYJf2qYwu'
  }
}
      */
}

function Economy() {

   let a = eco.products()
 console.log(a)
    /* if any no data Error:
   Error: No Product ./<file_name>.json
  if there is Data is shown
   */
 eco.send("123",10)
 /* MONEY INCREASE */
 eco.back("123",10)
 /* MONEY Decrease */
}

Search()
Economy()
  • Discord Server
  • Twitch
  • NPM
  • NPM.İO
  • DİSCORD_BOT
  • DESTEK/SUPPORT

Keywords

FAQs

Last updated on 19 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc