I am trying to get the direct download link from Google Drive, so I want to get specific content from external url.
Example: visit x 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.
$dom = new DOMDocument;
libxml_use_internal_errors(true);
$dom->loadHTMLFile('https://drive.google.com/uc?id=12ejMrVziFpjcEpG9A2Ks4yoNDJ9qz0B5&export=download');
$DOMxpath = new DOMXPath($dom);
$DivContent = $DOMxpath->query("//div[@id='uc-download-link']");
$bigDiv = $DivContent;
$link = $bigDiv->find('a');
echo $link->href . '<br>';
Is that possible with <kbd>PHP</kbd> or <kbd>JavaScript</kbd>?