Hugo291 / larousse_api

Scraping program of larousse website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Larousse API

This package is an upgrade of Github project larousse_api

Usage

from larousse_api.larousse import Larousse

# init class larousse
l = Larousse("Fromage")

# Print the array containing all defintions of "Fromage"
print(l.get_definitions())

# Print the array containing all locution of "Fromage"
print(l.get_locutions())

# Print the array containing all synonymes of "Fromage"
print(l.get_synonymes())

# Print the array containing all citations of "Fromage"
print(l.get_citations())

Why ?

Because the Larousse website doesn't supply an api to look up definitions :(

How ?

  • python3
  • requests
  • re
  • BeautifulSoup

Possible improvements

  • Suggest words if the word is misspelled

About

Scraping program of larousse website

License:MIT License


Languages

Language:Python 100.0%