+ 1
Django website loading for 10 mins.How to improve performance?
I built a django project that uses my search and scrape youtube search results and display in my page in cards. I scraped video id,title,description,thumbnail image,channel name but it takes more time to load.Is there a way to improve the performance of my django project?I have used BeautifulSoup to scrape the data. If anyone interested in helping me, if he/she wants i will explain the question further. Looking forward for your helps. Thank you in advance🙏
9 Respostas
+ 2
There is a faster way: YouTube API.
https://developers.google.com/youtube/v3/docs/search/list
+ 2
After i added the web scraping part, i am facing such issue
+ 1
Can you share the code, GitHub, or something?
+ 1
What changes did you make after which such a issue arises?
+ 1
Is your code making too many requests? Is the internet speed slow?
I have faced those issues in the past with BeautifulSoup.
+ 1
Yes it would scrape the details of upto 20 videos in a loop. Is that more? Should i reduce?
+ 1
With these you can narrow the search and then scrape for thumbnails.
+ 1
Thank you so much Amey Bhavsar
+ 1
I have completed my project and uploaded.
Url:https://myutube3000.herokuapp.com
Open this website with desktop version in the chrome menu