Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Created rough method to skip taken down albums.
Jules39069dec9451
diff --git a/URLs.txt b/URLs.txtindex e69de29bb..46a8dd742 100644--- a/URLs.txt+++ b/URLs.txt@@ -0,0 +1 @@+https://cyberdrop.me/a/i5fwZha1\ No newline at end of filediff --git a/downloader.py b/downloader.pyindex 9da69ca9f..717ffbac5 100644--- a/downloader.py+++ b/downloader.py@@ -118,7 +118,7 @@ if __name__ == '__main__':response = requests.get("https://api.github.com/repos/Jules-WinnfieldX/CyberDropDownloader/releases/latest")latestVersion = response.json()["tag_name"]- currentVersion = "1.4.1"+ currentVersion = "1.4.2"clear()@@ -157,18 +157,23 @@ if __name__ == '__main__':page = requests.get(url)soup = BeautifulSoup(page.text, "html.parser")- if 'cyberdrop' in url.lower():- dirName = soup.select('h1.has-text-centered')[0].text.strip()- print(dirName)- dirName = dirName.split("–")[0]-- elif 'putme.ga' in url.lower() or 'pixl' in url.lower():- dirName = soup.find("meta", {"property": "og:title"}).attrs['content']-- elif 'bunk' in url.lower():- dirName = soup.select('h1.title')[0].text.strip()- # Artificial limit to bypass rate limitting- cpu_count = cpu_count if cpu_count < 4 else 3+ try:+ if 'cyberdrop' in url.lower():+ dirName = soup.select('h1.has-text-centered')[0].text.strip()+ print(dirName)+ dirName = dirName.split("–")[0]++ elif 'putme.ga' in url.lower() or 'pixl' in url.lower():+ dirName = soup.find("meta", {"property": "og:title"}).attrs['content']++ elif 'bunk' in url.lower():+ dirName = soup.select('h1.title')[0].text.strip()+ # Artificial limit to bypass rate limitting+ cpu_count = cpu_count if cpu_count < 4 else 3+ except:+ print("Skipping URL: {}".format(url))+ print("Please check the URL and if it's valid please create a github issue.")+ continuerstr = r"[\/\\\:\*\?\"\<\>\|\.]" # '/ \ : * ? " < > | .'dirName = re.sub(rstr, "_", dirName)