Friday, December 27, 2019

Re: How to request data from an open source website such as Reddit or Github and display on the Local Django Website ?

hey Shaurya, 
if you haven't worked with DRF  then check it out. It will give you a much better idea of API calls.
Other than that, Reddit have its own API for you want to achieve. 
check out its documentation here: https://www.reddit.com/dev/api/
there is a difference between web crawling and requesting data from API. change your approach for making your project.
also, your project is very interesting . All the best for the same.

regards,
Karan Mittal

On Thu, Dec 26, 2019 at 6:34 PM Shaurya Sharma <sshaurya43@gmail.com> wrote:
Hey there ,  I am quite a newbie to Django and I am trying to understand how API calls and requests work in Django. I have a simple Django website that has User login and authentication system. I want a user to save the top ten reddit posts and display them on their respective login system. I have seen the request method in Python and some web-crawling methods. I am unable to figure out a way to request data from Reddit . 
Here is the code I have written so far : 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c1e0f93e-e4ff-444c-8f96-e4120b2298eb%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqwoDcDoEYPgHYLgcFQ8n_n3LqNC3Bjf9cJLYkvB3%2Boy8Q%40mail.gmail.com.

No comments:

Post a Comment