BeautifulSoup returning empty list
<p>I’m trying to create a script where I can parse the source code from <a href="https://www.youtube.com/feed/subscriptions" rel="nofollow noreferrer">https://www.youtube.com/feed/subscriptions</a> and retrieve the URLs of the videos in my subscription feed, in order to stick them in a MP4 download and save to my FTP server. </p>

<p>However I have been stuck on this problem for a couple of hours.</p>

<pre><code>import bs4
import requests
source = requests.get('https://www.youtube.com/feed/subscriptions')
sourceSoup = bs4.BeautifulSoup(source.text,'html.parser')
sourceSoup.select('#grid-319397 &gt; li:nth-child(1) &gt; div &gt; div.yt-lockup-dismissable &gt; div.yt-lockup-content &gt; h3')
[]
</code></pre>

<p>I am right clicking on the css element and ‘inspect element’ then ‘copy selector’ and pasting it inside the select method. </p>

<p>As you can see, it keeps returning an empty list. </p>

<p>I have tried many different derivatives of this, but it’s not picking up anything. I am having the same problem when doing the same things on the homepage, therefore I doubt that it is because it is behind a login (although I am logged in on the PC in which the script is running). </p>

<p>Can someone please point in the right direction?</p>