Git Product home page Git Product logo

dictionary_cambridge's Introduction

Dictionary cambridge voicing

Получаем озвученное слово с сайта https://dictionary.cambridge.org/

Requirements

  • bs4
  • googletrans

Basic Idea

Получить аудио файл с озвученным английским словом с сайта https://dictionary.cambridge.org Иметь возможность выбрать акцент озвучивания: Британский или Американский. Иметь возможность вывести все значения слова с переводом.

How To

  1. Получаем аргументы
  2. Создаём объект Слово
  3. Ищем слово на сайте
  4. Парсим страницу, заполняем свойства объекта
  5. Печатаем результат, сохраняем файл

Arguments

word - слова для поиска, обязательный -p, --pronounce - акцент, по умолчанию Британский (uk) -m, -mor - получать ли дополнительную информацию: значение, перевод, по умолчанию False

Example

python main.py dorm

/dɔːm/

Произношение слова dorm c акцентом UK загружено в файл dorm_uk.mp3

общежитие

python main.py dorm -m

/dɔːm/ Произношение слова dorm c акцентом UK загружено в файл dorm_uk.mp3

a large room containing many beds, for example in a boarding school: continue...

Большая комната, содержащая много кроватей, например, в школе -интернате: continue...

a large building at a college or university where students live: continue...

Большое здание в колледже или университете, где живут студенты: continue...

общежитие

dictionary_cambridge's People

Contributors

kariyma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.