Skip to main content

Access aparat video sharing api

Project description

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
)

References:

[1] https://en.wikipedia.org/wiki/Aparat

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aparat-python-0.0.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

aparat_python-0.0.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page