Skip to content

mahdikhashan/aparat-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aparat Python API

Aparat Logo

Aparat (Persian: آپارات‎, Âpârât) is an Iranian video sharing service (source: wikipedia [1])

Features

  • Login
  • Profile
  • Search
  • Profile Categories
  • Video
  • Video Categories
  • Video By User
  • Comment By Video
  • Video By Tag
  • Upload Video
  • Download Video

How to login

from aparat import Aparat


aparat = Aparat()

user = aparat.login('username', 'password')

How to upload a video

from aparat import Aparat


aparat = Aparat()

user = aparat.login(username, password)
form = aparat.uploadForm(user.username, user.ltoken)

video = aparat.uploadPost(
    form=form,
    video_path='video.mp4',
    title='title',
    category=10,
    tags=['tag1', 'tag2', 'tag3'],
    allow_comment=True,
    descreption='desc',
    video_pass=False
)

Contributors