If you stream your videos online, your browser URL will have the content ID you require. So even delisted videos can be scraped in this way.