Fastapi API for Uncyclopedia and it's Polish alternative - Nonsensopedia
- From today's featured article (
/featured-article)- title
- content
- image url
- Did you know... (
/did-you-know)- content
- image url
- In the news (
/news)- content
- ongoing
- recent deaths
- upcomming deaths
- image url
- image description
- On this day (
/on-this-day)- date info
- description
- anniversaries
- image url
- Picture of the day (
/picture)- title
- image credit
- image url
- Artykuł na medal (
/artykul-na-medal)- title
- description
- image url
- Święto na dziś (
/swieto)- title
- subtitle
- events
- image url
- NonNews (
/non-news)- newest
- archive
- Czy nie wiesz… (
/czy-nie-wiesz)- newest
- archive
- Losowa grafika (
/losowa-grafika)- image url
- image alt
- author
- Mądrość ze słownika (
/madrosc)- word
- definition
src:main.py– main logic with endpointseng.py– function for getting data from Uncyclopediapl.py- function for getting data from Nonsensopediautils.py- helping functions
requirements.py- required python libraries
- clone the repository
git clone https://github.com/mzums/uncyclopedia-api.git - go to the project directory
cd uncyclopedia-api - install requirements
pip install -r requirements.txt - run the app with uvicorn
uvicorn src.main:app --reload - use the api on
http://127.0.0.1:8000