Coder Social home page Coder Social logo

apd's Introduction

apd(this program doesnt work any more due to aparat design changes)

aparat downloader is a program that make downloading video's and playlist easy from aparat.

apd is the main of the program which conrtrol all the module and maintain the cli interface.

all you need for download one video is to paste the video page link after the command apd. like: apd https://aparat.com/some/videohash Download One Vdeo

or if you need to download the whole videos of a playlist, put --playlist before or after the link of the playlist. Like this: apd https://aparat.com/some/videohash --playlist Download all playlist

if you use --just-list option, it will print the url/url's to stdout and then you can redirect them to a file. apd https://aparat.com/some/videohash --playlist --just-list get video download url Or get playlist video download url

To specify the quality, use --quality option and set your required quality. Like This: apd https://aparat.com/some/videohash --playlist --just-list --quality 1080

if you need to download a specify scop of a playlist you should use --start and/or --end. the --start specify that from which video should start the process. and --end indicate that which video is the last video that should be process. apd https://aparat.com/some/videohash --playlist --start 3 --end 13

some of the option has a short way to use:

quality | -q

playlis | -p

list | -l

note that if you use --just-list, apd won't download any video.

note that if you don't specify quality, apd will try to find 480 quality.

note: you can use --start or --end singly, like: apd https://aparat.com/some/videohash --playlist --start 5

note the default ending is the last video of playlist

note: default begining is the first video of playlist

how to use on linux

  1. clone the repo git clone https://github.com/shabane/apd.git
  2. enter bash install.sh
  3. you made it, now you can run apd command.
  4. apd "aparat link" [options]

how to use on windows

  1. clone the repo git clone https://github.com/shabane/apd.git
  2. open CMD and cd to the apd dircectory
  3. enter python apd.py "apart link" [options]

exit code is:

0: every thing is great
2: missing some option
10: error in the apd
20: error in video_finder
30: error in play_list_finder
40: error in downloader
other error: all other error come from http status

apd's People

Contributors

shabane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rezarfahi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.