{"id":13469342,"url":"https://github.com/Cartmanishere/zippyshare-scraper","last_synced_at":"2025-03-26T06:32:07.646Z","repository":{"id":27522435,"uuid":"113727854","full_name":"Cartmanishere/zippyshare-scraper","owner":"Cartmanishere","description":"A module to get direct downloadable links from zippyshare download page.","archived":false,"fork":false,"pushed_at":"2023-03-20T08:58:33.000Z","size":46,"stargazers_count":106,"open_issues_count":4,"forks_count":28,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-29T23:55:21.258Z","etag":null,"topics":["download-links","multithreading","scraping-websites","zippyshare","zippyshare-scraper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cartmanishere.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-10T06:11:05.000Z","updated_at":"2024-08-28T12:56:23.000Z","dependencies_parsed_at":"2024-01-18T20:05:26.580Z","dependency_job_id":null,"html_url":"https://github.com/Cartmanishere/zippyshare-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cartmanishere%2Fzippyshare-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cartmanishere%2Fzippyshare-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cartmanishere%2Fzippyshare-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cartmanishere%2Fzippyshare-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cartmanishere","download_url":"https://codeload.github.com/Cartmanishere/zippyshare-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245604129,"owners_count":20642943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["download-links","multithreading","scraping-websites","zippyshare","zippyshare-scraper"],"created_at":"2024-07-31T15:01:34.835Z","updated_at":"2025-03-26T06:32:07.086Z","avatar_url":"https://github.com/Cartmanishere.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![Test Status](https://travis-ci.com/Cartmanishere/zippyshare-scraper.svg?branch=master)](https://travis-ci.com/Cartmanishere/zippyshare-scraper)\n\nCheck the [CHANGELOG](https://github.com/Cartmanishere/zippyshare-scraper/blob/master/CHANGELOG.md) for updates.\n\n## Zippyshare Scraper:\n\nThis is a script to get direct download links to files from zippyshare. If you've used zippyshare to download anything then you know that you have to go to their page and click on the download now button to get the download started.\n\nThis script extracts the real download link from the page. You can directly feed that link to a downloader to get your download started.\n\nThis script is useful when working on remote servers where you don't have access to gui software.\n\n### Reset Zippyshare Uploads:\n\nIf you're a zippyshare uploader, you know that zippyshare uploads are taken down if they're not downloaded in last 30 days.\n\nYou can use this script to reset the last download date without actually downloading the complete upload.\n\nThis script initiates the download of the file to test whether the link is working. Because of this, the last downloaded date for the file is also updated.\n\nIn this way, you can very easily extend the lifetime of your upload without wasting valuable time and bandwidth.\n\n\n### Dependencies :\n\n1. You need Python 3 environment to execute the script. You can easily install it from [here](https://www.python.org/downloads/).\n2. Install the python dependencies:\n```\n\tpip install requirements.txt\n```\n\n### Options:\n\n| Arg | Value | Description |\n| --- | --- | --- |\n| `--in-file` | filepath | Path of the file containing zippyshare links to parse. |\n| `--out-file` | filepath | Path of the file in which generated links will be stored. |\n| `--dlc` | filepath | Path of a `.dlc` file. Takes precendence over `--in-file`. |\n| `--filecrypt` | link | Link of a filecrypt container page. Note: It should not have a password or captcha. |\n| `--engine` | `js`/`text`| Which engine to use for generating links. `js` by default. See `Engines` below for explanation. |\n\n### Engines:\n\n**History**\n\n- This library used to work by scraping the zippyshare webpage.\n- Parsing the javascript code to generate the link by regex matching.\n- Whenever the source code of the site changed even slightly, this broke the regex matchers.\n- Hence we ended up multiple different patterns that the site source code can have.\n\n**Update**\n\n- Instead of parsing the javascript using regex matching, the library has switched to executing the javascript code.\n- The pure python implementation of javascript engine [js2py](https://github.com/PiotrDabkowski/Js2Py.git) is used for this.\n- This should make the library more robust.\n\nFor now, I am keeping both the different approaches for getting the download links. These are the two engines -- \n\n- JsEngine\n- TextEngine\n\n\n### Usage :\n\n1. Input links using an input file -- \n```python\npython zippyshare.py --in-file input_links.txt --out-file links.txt\n```\n\n2. input links using dlc file -- \n```python\npython zippyshare.py --dlc filename.dlc --out-file links.txt\n```\n\n3. Input links from terminal -- \n```python\npython zippyshare.py\n```\n\n\n#### Examples :\n\nExample of unprocessed link (this type of link will be input): ```http://www120.zippyshare.com/v/7DpZTYfi/file.html```\n\nExample of Direct Downloadable link: ```http://www120.zippyshare.com/d/7DpZTYfi/4656/Ghost.In.The.Shell.S2.x265.7z.003```\n\n#### (Optional) :\n\n* You can then download from ```links.txt``` as follows:\n\n```aria2c -i links.txt --file-allocation=none -c --auto-file-renaming=false```\n\n```wget -nc -i links.txt```\n\n* Or you can download using any other downloader you prefer.\n\n### Known Issues :\n\n* You have to run the script from the same network using which you are downloading files otherwise links may not work.\n\n* The direct download links stop working after a few hours ( About 3-4 hrs, maybe). Don't know the exact time period.  At that point, you can rerun the script to get new download links to the same files which will work without problem.\n\n* The script runs into an error when the \"File not exist\" zippyshare page loads.\n### License :\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCartmanishere%2Fzippyshare-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCartmanishere%2Fzippyshare-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCartmanishere%2Fzippyshare-scraper/lists"}