Coder Social home page Coder Social logo

ramongduraes / dicio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipemfp/dicio

0.0 1.0 0.0 95 KB

:abc: A Python API for Dicio.com.br

Home Page: http://felipemfp.github.io/dicio

License: MIT License

Python 30.80% HTML 67.83% Makefile 1.37%

dicio's Introduction

dicio

Build Status Coverage Status

Python API for Dicio.com.br

Demo

Installation

$ pip install Dicio

Usage

from dicio import Dicio

# Create a Dicio object
dicio = Dicio()

# Search for "Doce" and return an object Word
word = dicio.search("Doce")

# Print the word, the url and the meaning
print(word, word.url, word.meaning)

# Print a list of synonyms
print(word.synonyms)

# Print a list of examples
print(word.examples)

# Print extra informations
for chave, valor in word.extra.items():
    print(chave, "=>", valor)

# Load information about the first synonym
# Print the word, the URL and the meaning of the first synonym
word.synonyms[0].load()
print(word.synonyms[0], word.synonyms[0].url, word.synonyms[0].meaning)

Word details

Attributes

  • word - the word itself
  • url - Dicio.com.br URL for the word
  • meaning - the meaning
  • etymology - the etymology

Properties

  • synonyms - list of synonyms
  • examples - list of examples
  • extra - dictionary of extra information (keys in portuguese)

Functions

  • load - load information from Dicio.com.br

Contribute

If you want to add new features or improve something, send a pull request!

dicio's People

Contributors

felipemfp avatar wasnio avatar

Watchers

 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.