Skip to content

Instantly share code, notes, and snippets.

View Itswolfcity811's full-sized avatar
💭
I can't respond to you immediately most of the time.

Itswolfcity811 Itswolfcity811

💭
I can't respond to you immediately most of the time.
  • 15:56 (UTC -06:00)
View GitHub Profile
@macloo
macloo / wikipedia_page_api.py
Created April 18, 2023 15:27
Access the Wikipedia API with Python, Flask, and Requests
"""
Flask example using Requests library syntax to build
a Wikipedia API query - no templates, just raw HTML
written straight into the browser.
This code was partly written by ChatGPT.
"""
from flask import Flask, jsonify, request, redirect, url_for
import random, requests