Skip to content

Remaster1/libanekdoty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libanekdoty

Library for parse anekdoty.ru

Examples:

# Get all categories
from libanekdoty.categories import Categories
categories = Categories().get_all_categories()
# Get random category
from libanekdoty.categories import Categories
category = Categories().get_random_category()
# Get all jokes from random category
from libanekdoty.categories import Categories
from libanekdoty.jokes import Jokes
category = Categories().get_random_category()
jokes = Jokes(category["url"]).get_all_jokes()
# Get jokes from selected page in random category
from libanekdoty.categories import Categories
from libanekdoty.jokes import Jokes
category = Categories().get_random_category()
jokes = Jokes(category["url"]).get_jokes_from_selected_page(2)

Releases

No releases published

Packages

No packages published

Languages