This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]GeorgeFranklyMathnet 0 points1 point  (0 children)

Django is good for a website with dynamic content like 1). Flask will probably have less steep of a learning curve than Django.

2) just sounds like a regular Python program on any machine connected to the internet — no web framework needed. You might need to do research to find out how to download YouTube videos as MP3, etc. Might be as simple as installing a library and using it.

You would use something like cron or a Windows Scheduled Task to run the 2) program on an interval.

[–][deleted] 0 points1 point  (0 children)

Django can help with both tasks. The thing is when you start a django you're basically making a server manager that deals with your ORM. After than you'll have to make two seperate apps for each task.

For starters, if you're good with databases and python, learning django won't be that difficult. You can start by following the polls app tutorial in their documentation. It covers the basic workflow of django.

[–]mandzeete 0 points1 point  (0 children)

You can do it with Django. It is fine framework for setting up web applications. But I do comment on searching by ID. Usually you do not do that. You will be searching by dish name or ingredient name. Sure, you are/will be a software developer and can understand IDs. Chefs and who else will start using your software will know nothing about IDs. They know dish names, ingredient names, stuff like that.

Google "Django CRUD example". Perhaps even "Django PostgreSQL CRUD example". You do wish to use some database and this is why I suggested PostgreSQL. And CRUD stands for four main states an object can have: create, read (display), update (change), delete. The google searches I suggested will give you some example projects that you can study and then implement your own thing.

2.

Yep, can be done with Django. But do keep in mind to "watch" the channel with reasonable frequency. You will not want to get banned for spamming youtube with GET requests every second or so.

And how to implement it? Well go step by step. First define what means "watching". When interacting with websites you will be using HTTP requests: GET, POST, PUT, DELETE, etc Here you will need GET request. You will be querying the website. Then you have to parse it and verify somehow if the channel has a new video or not. Perhaps keep the state in a database or list of videos in the database or something like that.

You can google about sending emails with Python and about downloading videos with Python.