A repo for studying Python's Requests module and for reference, and for continually improving and expanding. Using Python 3.
Requests are made to public domain poetry & prose found in Cagibi journal, at cagibilit.com. Cagibi is an online journal on WordPress, and so this uses the WordPress REST API.
Consists of a core.py main program, and two classes: Poem and ResponseInspector.
Running src/core.py within VSCode
/usr/local/bin/python3 /Users/.../requests-study/src/core.py
If requests ModuleNotFoundError, run below pip3 command (Python 3) to install, or see Requests link under Built With section for installation guide:
pip3 install requests
- Python 3.7.4
- Requests: an HTTP library for Python
- json: JSON encoder and decoder for Python
- WordPress REST API