App to search by Confession # on the PES-Confessions Facebook page.
This was a quick hack and has a lot of issues. FBlogger.py - Used for logging. Fetches upto 300 of the latest confessions and adds it to a mongo collection as {confID: , message: }
main.py - Simple Python Flask server that gets the confession number from the URL (http:///) and searches the mongo collection for the confession.
Known issues:
- FBlogger does not run periodically and pagination is not handled. Modify the script to run automatically every X mins.
- Some problem with unseen confession IDs. Flask is not returning the response text properly.
- DB has been populated twice.
Add features and send a pull request!
Enhancements suggested:
- GET /random should return a random confession
- GET /popular returns posts sorted by number of likes