diff --git a/.gitignore b/.gitignore index a98a560..ebde38a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ data/files/* +data/torrents/* __pycache__/ -ygg-crawler/node_modules/ +yggcrawl/__pycache__/ login.py diff --git a/data/torrents/.gitkeep b/data/torrents/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/yggcrawl/yggtorrentscraper.py b/yggcrawl/yggtorrentscraper.py index 7a7cb3d..27aea80 100644 --- a/yggcrawl/yggtorrentscraper.py +++ b/yggcrawl/yggtorrentscraper.py @@ -330,7 +330,7 @@ class YggTorrentScraper: return torrents #kopa - def download_from_torrent_url(self, torrent_url=None, destination_path="./data/files/"): + def download_from_torrent_url(self, torrent_url=None, destination_path="./data/torrents/"): if torrent_url is not None: torrent = self.extract_details(torrent_url) @@ -338,14 +338,14 @@ class YggTorrentScraper: torrent_url=torrent.url, destination_path=destination_path ) - def download_from_torrent(self, torrent=None, destination_path="./data/files/"): + def download_from_torrent(self, torrent=None, destination_path="./data/torrents/"): if torrent is not None: return self.download_from_torrent_download_url( torrent_url=torrent.url, destination_path=destination_path ) def download_from_torrent_download_url( - self, torrent_url=None, destination_path="./data/files/" + self, torrent_url=None, destination_path="./data/torrents/" ): if torrent_url is None: raise Exception("Invalid torrent_url, make sure you are logged")