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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aparat-python-0.0.2.tar.gz.

File metadata

  • Download URL: aparat-python-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for aparat-python-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9941c2cc305f2cc7b43ea15cb7e96ed5e09427014257bb49596a839ddb72dc00
MD5 a5da09b03786ebf64f4617a9e9edc08e
BLAKE2b-256 50f7eb92f1f601061369f1885f7f1b134286fa8a2e389ec6861f9e6d272c375f

See more details on using hashes here.

File details

Details for the file aparat_python-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aparat_python-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff0109f38cde50ffa3805dde4a5939842f165f3768479fa6c7fb6a2046ce7f0e
MD5 aeebd15185ad42ce709a921f7e81ded2
BLAKE2b-256 18de3e6e3b39de9e12c09ee9bac179d9f531492b9e03038b976497c03eab73ae

See more details on using hashes here.

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