Skip to content

Hugo291/larousse_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages