Skip to content

vasilevich/free-google-translate-with-puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

free-google-translate-with-puppeteer

spin up a puppeteer instance (with mega-scraper) and translate any text for free.

example usage

#!/usr/bin/env node
const translate = require('free-google-translate-with-puppeteer')

main()
.then(() => process.exit(0))

async function main () {
  const translation = await translate({ text: 'ein apfel am tag hält den arzt fern', from: 'it', to: 'en' })
  console.log(`-> "${translation}"`) // one apple a day keeps the doctor away
}

About

translate any text for free

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%