Skip to content

sximba/springlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Springlab ytv - A webpage for listing interesting YouTube Videos

  • A simple webpage that lists interesting YouTube videos
  • Managed via an HTTP API
    • GET /video/ - Returns a list of the videos, including id, title, description and url information
    • POST /video/ - Adds a video to the list. The posted data should be in json, and the only required field should be the url, eg: {"url":"http://www.youtube.com/watch?v=QpkHt1hDYTo&list=WL6DF303C9A056101C"}
    • DELETE /video/id/ - Removes the specified video.

Assumptions made (for simplicity)

  • URLs will not exceed 1000 characters
  • Titles will not exceed 300 characters
  • YouTube video IDs will remain 11 characters
  • Videos with missing attributes are not interesting

These assumptions are not entirely necessary, model attributes can be changed to accomodate larger fields

Things to note:

  • Application is small. Function-based views favored over cleaner class-based views

  • Application uses the Django web framework, Mechanize and BeautifulSoup4

  • To run quickly use (in root folder): python manage.py syncdb python manage.py runserver

Releases

No releases published

Packages

No packages published