Welcome to the Article Ideas Generator web application! This Flask-based app uses the MediaWiki Action API to help you explore and discover article topics that are missing or underdeveloped on Wikipedia. π
The Article Ideas Generator Web App is built using a lightweight yet powerful technology stack to ensure smooth operation and extensibility. π
- Programming Language: Python 3.8+
- Framework: Flask - A minimal and flexible backend framework for building web applications. π
- Data Retrieval: MediaWiki Action API - Used for querying and fetching structured data from Wikipedia. π‘
- Frontend Rendering: Jinja2 Templates - For dynamic UI generation and seamless integration with Flask. π¨
- HTTP Requests: Python's
requests
library for efficient and reliable API communication. π¬ - Styling: Simple and clean CSS, with optional customization for enhanced user experience. π
- Application Hosting: Runs on a local development server, accessible at http://127.0.0.1:5000/. π₯οΈ
This architecture ensures the app is lightweight, responsive, and easy to deploy or extend for future use cases. π
- Fetches top-level sections from a Wikipedia page.
- Dynamically displays subsections based on user selection.
- Identifies red links (missing articles) from selected sections.
- Provides a curated list of potential articles to create.
- Easy-to-use UI for exploring categories and subcategories.
- Offers seamless navigation through different sections of Wikipedia.
- Backend: Flask - A lightweight web framework for Python.
- API: MediaWiki Action API for querying Wikipedia data.
- Frontend: HTML + Jinja templates for dynamic rendering.
- Styling: Minimal CSS for a clean and user-friendly interface.
- Python 3.8 or higher.
- Flask installed in your Python environment:
pip install flask
- Requests library
pip install requests
- Clone the repository
git clone https://github.com/sundog358/article-ideas-generator.git
- Navigate to the project directory:
cd article-ideas-generator
- Run the app:
python articles.py
- Open your browser and go to:
- Open the app in your browser at http://127.0.0.1:5000/.
- Select a category from the displayed list of Wikipedia sections.
- Explore subsections or view missing links (red links) for potential article topics.
- Use the suggestions to write new articles or expand existing content on Wikipedia.
- Fetches and displays top-level sections from
Wikipedia:Requested_articles
.
- Allows users to explore subsections dynamically.
- Identifies missing links on Wikipedia pages, enabling users to discover new article ideas.
-
articles.py
:- The main Flask app logic.
- Handles routing, API calls, and user interactions.
-
templates/articles.html
:- Jinja2 template for rendering the UI dynamically.
-
static/style.css
:- Optional custom CSS file for styling.
- Add faceted search and filtering for better article discovery.
- Enable users to save and share article ideas.
- Extend functionality for non-English Wikipedia editions.
We welcome contributions to improve this app! Feel free to fork the repository, make changes, and submit a pull request. π
This project is licensed under the MIT License. See the LICENSE
file for details.
Special thanks to the **Wikimedia Found