bernardro / actor-youtube-scraper

Apify actor to scrape Youtube search results. You can set the maximum videos to scrape per page as well as the date from which to start scraping.
https://apify.com/bernardo/youtube-scraper
Apache License 2.0
23 stars 19 forks source link

Simplified results #59

Closed levent91 closed 2 years ago

levent91 commented 2 years ago

https://console.apify.com/view/runs/ccNYKJ3fHoq0j0EY1

metalwarrior665 commented 2 years ago

Looks good but would there be a way to use the same scrolling/video collection code as the non-simple output? That would simplify the codebase. Not sure if there is any big problem

levent91 commented 2 years ago

Well yeah, just modified the structure here https://github.com/bernardro/actor-youtube-scraper/blob/master/src/utility.js#L22-L107 , as there were too many differences, I preferred writing a separate function for that. I can modify that one and reuse it