Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------------
- youtube.com ID + image screpper need to use api
- script need to scrape id and image tumbnail using keywords
- 1 - "load keywords"
- -------------------------------------------------------------
- VIDEO OPTIONS
- when script search using "keyword" scrap all results from like 10 pages
- so if we have keyword "house mix 2015" we will get this :
- https://www.youtube.com/results?search_query=house+mix+2015
- and script need to record all youtube urls from this page and 10 more pages >
- https://www.youtube.com/results?search_query=house+mix+2015&page=2
- https://www.youtube.com/results?search_query=house+mix+2015&page=3
- https://www.youtube.com/results?search_query=house+mix+2015&page=4
- https://www.youtube.com/results?search_query=house+mix+2015&page=5
- https://www.youtube.com/results?search_query=house+mix+2015&page=6
- https://www.youtube.com/results?search_query=house+mix+2015&page=7
- https://www.youtube.com/results?search_query=house+mix+2015&page=8
- https://www.youtube.com/results?search_query=house+mix+2015&page=9
- https://www.youtube.com/results?search_query=house+mix+2015&page=10
- and export into txt into this format :
- I will use 3 videos from 1st page :
- https://www.youtube.com/watch?v=6vKtF1OerIQ
- https://www.youtube.com/watch?v=TguT_urwp_o
- https://www.youtube.com/watch?v=Z-LyvotnXBA
- so export txt will be in this format :
- <iframe width="425" height="350" src="https://www.youtube.com/embed/6vKtF1OerIQ" frameborder="0" allowfullscreen></iframe>
- – – – – –
- <iframe width="425" height="350" src="https://www.youtube.com/embed/TguT_urwp_o" frameborder="0" allowfullscreen></iframe>
- – – – – –
- <iframe width="425" height="350" src="https://www.youtube.com/embed/LyvotnXBA" frameborder="0" allowfullscreen></iframe>
- and so on NOTE !!! after every full youtube line script need to add this :
- "– – – – –"
- -------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement