Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
/ pes-confessions Public archive

App to search by Confession # on the PES-Confessions Facebook page.

Notifications You must be signed in to change notification settings

pesos/pes-confessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pes-confessions

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:

  1. FBlogger does not run periodically and pagination is not handled. Modify the script to run automatically every X mins.
  2. Some problem with unseen confession IDs. Flask is not returning the response text properly.
  3. DB has been populated twice.

Add features and send a pull request!

Enhancements suggested:

  1. GET /random should return a random confession
  2. GET /popular returns posts sorted by number of likes

About

App to search by Confession # on the PES-Confessions Facebook page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages