yangobeil / youtube-downloader

Scrape Youtube for videos and extract screenshots from the videos
12 stars 5 forks source link

Found 0 video links for ..... #1

Open berkantay opened 4 years ago

berkantay commented 4 years ago

I pass 'drone' to your script but code throws me Found 0 video links for drone.

extract_images_from_word('dron',delete_video=True,image_delay=0.5,num_urls=10,max_images=50,name="test_frame")

Kazlovich commented 3 years ago

I am having a similar issue and I tried to scrape simple content to test it, like videos of cats. Did you manage to find a solution? Any help would be much appreciated.

yangobeil commented 3 years ago

Hi,

Thanks for using my code :) It looks like youtube has changed the way their webpage is written so it's much more complicated to extract the list of video links for a given search word. The rest of the code works so I have a few suggestions:

Let me know if you would be interested to use one of the solutions and I can help you.

Kazlovich commented 3 years ago

Hi Yan,

Thank you so much for your response and suggestions. I am trying to generate a database so that I can train (or attempt to train) a model for medical research, primarily surgical applications. So looking at your suggestions, I think your first point with the suggested URL changes may be most suitable for my case. I really appreciate your help. Once again, thank you!

Kindly, Kate

Kazlovich commented 3 years ago

Hi Yan, I did the manual URL search and specified it in the code but it is still not working for me. Any chance you could do a simple example? Maybe a video with sport or something simple like cat or dog? I get errors like: Download of h did not work because of regexsearch: could not find match for (?:v=|\/)([0-9A-Za-z-]{11}).*... etc. etc.

yangobeil commented 3 years ago

Hi Kate,

Here is a colab notebook where I show how to download images from two different videos: https://colab.research.google.com/drive/1URIvnIC-jsmqNxQM31z7ppLSMR1Rj1mc?usp=sharing. Let me know if it works for you :)