title: Get specific content from an external url - PHP
body: <p>I am trying to get the direct download link from Google Drive, so I want to get specific content from external url.</p>
  
  <p>Example: visit <i>x</i> link and get the url from this div or from this class! I think that this is possible, but I don't know how to do it.</p>
  
  <pre><code> $dom = new DOMDocument;
   libxml_use_internal_errors(true);
   $dom-&gt;loadHTMLFile('https://drive.google.com/uc?id=12ejMrVziFpjcEpG9A2Ks4yoNDJ9qz0B5&amp;export=download');
   $DOMxpath = new DOMXPath($dom);
   $DivContent = $DOMxpath-&gt;query("//div[@id='uc-download-link']");
   $bigDiv = $DivContent;
   $link = $bigDiv-&gt;find('a');
   echo $link-&gt;href . '&lt;br&gt;';
  </code></pre>
  
  <p>Is that possible with <kbd>PHP</kbd> or <kbd>JavaScript</kbd>?</p>