Answer the question
In order to leave comments, you need to log in
How to make a parser on django with adding movies to the database?
Hello everyone! Please tell me how to make a parser on DJango! It should parse movies from kinogo or gidonline and so that all the data that it parsed is entered into the database under the following fields: movie_name, description, category,
year, rating, director, slug, player_code, trailer_code (but trailer_code is optional), and photo and 1 if it's a movie and 2 if it's a series! Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Not on Django. Django is a web framework for building websites and web applications, not web scrapers. The parser can be written in Python and then integrated with a django application. To do this, of course, you will need to learn Python itself, some library for http requests, some library for parsing the received data, and it is desirable to understand the very mechanisms of functioning of networks and the http protocol in particular. When you master all this and you have specific problems, then bring them here.
PS Learn from textbooks, courses will not lead to good.
You need to take letters, numbers and punctuation marks. And gaps. And arrange them so that you get the code that will complete your task.
How exactly to arrange, you can study in python courses on the courser, stepik or somewhere else. In almost all courses, such problems are solved.
Divide the task into steps.
1/ write a parser function for your site (or one for each of the sites you want to collect data from)
2/ write an engine that pulls this function (not necessary, if you only need to parse one site - skip this place)
3/ deal with storing the data received from the parser in the database (sqlite, for example)
4/ throw in the web face of your site (this is where Django is needed)
5/ Profit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question