Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
For a job interview I need to code a website consisting of at least 3 pages for a fictional band's website using Django.
My idea is to:
have a front page with blog posts from the band, the most recent one on top.
have an admin page where I can upload the band's songs.
have a page with a list of songs that can be played by clicking on the song.
I know very basic html and css (did some one codecademy).
I did the Django tutorial up until part 6 https://docs.djangoproject.com/en/1.10/intro/tutorial06/
I'm just not very sure how to go about doing this. (Would I use "static files" for the mp3's? How does one set up a blog format page?)
So I'm just hoping for a nudge in the right direction. Any links to tutorials or books or anything that might be useful would be much appreciated.
I believe this tutorial would be helpful for this project https://www.youtube.com/watch?v=qgGIqRFvFFk&list=PL6gx4Cwl9DGBlmzzFcLgDhKTTfNLfX1IK
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to make a python program that uses Youtube's api. The thing that I want to do is searching Youtube videos and showing the results in my program. Program gonna run like this: There is gonna be a textbox you write something and hit enter then you'll see the Youtube results below . What should I do for doing this in python or is this impossible?
Youtube has a Data API with very helpful example snippets. I would suggest reading through the official documentation before proceeding.
Relevant section: https://developers.google.com/youtube/v3/docs/search/list
Snippet tool instructions: https://google-developers.appspot.com/youtube/v3/code_samples/code_snippet_instructions
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am scraping a web page using BS4 & Scrapy. Is there a way to check if something new appears? If so, can it be copied and printed out?
For example, here is a soccer match that is live as I'm writing this post. Each scored goal is indicated by the player's name, it's time, and the soccer ball, which is span with the class icon soccer-ball. How can I check the page, let's say, every 2 minutes, and print out if someone scores a goal?
HTTP has header Last-Modified.
A big part of Chapter 11. HTTP Web Services
in "Dive into Python" is dedicated to "how not to fetch data"
Scrapy: Look at documentation of Downloader Middleware
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I would like to do a simple machine learning project where I want to analyse comments from discussion forums on Coursera courses.
However, I am not sure if it is possible to do so programatically. So, providing a course page address, user name, password and getting all the discussion forums comments.
Being able to use Python for this would be awesome but I am language agnostic.
You can access web pages with python using urllib:
https://docs.python.org/2/library/urllib.html
or the higher lever interface requests:
http://requests.readthedocs.org/en/latest/
Then you still have to parse the content of the page and extract the comments.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I made in python a webcrawler, and I want to make Django website to display the results of the crawling, can I do it? for example: the crawler enter to "https://stackoverflow.com/questions" and take the questins of the first page and display it on the website(maybe on the tamplate of Django).
EDIT: I just re-read your question and it looks like you're already doing the scraping? You should implement that functionality into a Django site and then yes of course you can display it.
Yes you can do it. A great combination for web scraping with django is using the python requests library (which I'm guessing you're using) andBeautiful Soup. I've used this combination in a few different projects and I've been happy with it.
Another popular option uses the python Scrapy library and combines it into a django app called django-dynamic-scraper.
Hopefully this points you in the right direction.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I've been asked to develop a video review system.
it would need multiple levels of permissions e.g. internal review, client review.
notes(comments) on all the submissions.
revisions of the video assets.
searching of video assets.
publishing these video assets will need to be done from the commandline. because it would be as a final step in a long chain of task being handed to our render-farm.
initially we don't need to video's to play in the browser directly just have a link to the source file and to a generated mov.
Is Django the right thing to use for something like this? is it difficult to create "content" revision control? how is django with commandline input? or is there something better to do this?
any thoughts would be appreciated.
Lars
Django will do this just fine. There are a coulpe revision control apps out there, a quick google search turned up this: Django-Revision as far as command-line usage you can write your own management commands.