Library for parse anekdoty.ru
# 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)