Skip to main content

Ytty - Powerful tool for parsing, downloading and uploading videos from youtube based on selenium.

Project description

Ytty - Powerful tool for parsing, downloading and uploading videos from youtube based on selenium.

-WARINING!!!-

You must have Google Chrome installed for google auth bypass!

-How to use?-

-Quickstart-

from ytty import *

if __name__ == '__main__':
	session = shadow_session()
	options = YTOptions()
	options.parse.search = 'FREE FIRE MOD MENU'
	options.parse.period = 1
	options.parse.max = 10
	videos = parse_videos(session, options)
	video = get_video(videos[0]['link'])
	session.quit()

	session = google_session('login', 'password')
	options.upload.video = video
	options.upload.title = videos[0]['title']
	options.upload.description = '''This you can write description for video
	That text written for example, you can write this what do you want :)'''
	options.upload.tags = ['tags', 'writes', 'in a', 'taglist', 'add', 'some tags', 'this']
	options.upload.preview = get_thumbnail(videos[0]['id'])
	upload_video(session, options)

-Parsing videos-

from ytty import *

if __name__ == '__main__':
	session = shadow_session() #headless chrome session without login
	options = YTOptions()
	options.parse.search = 'FREE FIRE MOD MENU' #Search request
	options.parse.period = 1 #Period from 0 to 2 when -> 0 - Today | 1 - a Week | 2 - a Month (Default is 2)
	options.parse.max = 10 #Limit of parsing video (Default is 20)

	videos = parse_videos(session, options)
	for video in videos:
		title = video['title'] #video title
		link = video['link'] #video link
		id = video['id'] #video id
	session.quit() #For close session

-Download thumbnails (previews)-

for video in videos:
	get_thumbnail(video['id']) #returns filename of preview

-Download videos-

for video in videos:
	get_video(video['link']) #returns filename of video

-Download video with uniqualization-

for video in videos:
	options = YTOptions()
	options.download.unique = True # if use vidspinner (ffmpeg to uniqualize, but it for Windows only)
	get_video(video['link'], options)

-Upload videos-

for video in videos:
	session = google_session('login', 'password') #session with login in google (no headless)
	
	options = YTOptions()
	options.upload.video = 'C:/path-to/video.mp4'
	options.upload.title = videos[0]['title']
	options.upload.description = '''This you can write description for video
	That text written for example, you can write this what do you want :)'''
	options.upload.tags = ['tags', 'writes', 'in a', 'taglist', 'add', 'some tags', 'this']
	options.upload.preview = 'C:/path-to/thumbnails.jpg'

	upload_video(session, options)

-Upload video as premiere and access management-

for video in videos:
	options.upload.acess = 'PUBLIC' #is default | UNLISTED - Acess by link | PRIVATE - Restricted access | SCHEDULE - Planned release (not yet configurable)
	options.upload.premiere = True

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

ytty-1.0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

ytty-1.0.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ytty-1.0.3.tar.gz.

File metadata

  • Download URL: ytty-1.0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for ytty-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e3e88f9c43254301acb81ae21af52e076a55e77df9ef2ba4cf77f271e06ce7d3
MD5 1dc21e6e74fe79211d31fd522768d119
BLAKE2b-256 64f6489d73e3ac5ca057e415f7230ebe34909f629e1924ee12a8ea5f6ed3df0c

See more details on using hashes here.

File details

Details for the file ytty-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ytty-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for ytty-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97b4dd0406c98d505cbcfb1784b0f43bcbf88432162f8c763d1395f95d7c36eb
MD5 40513370f862d85b4050ec0471d86699
BLAKE2b-256 0f61de1a2f8100385654a310b6e7c26a6d15564cfac7c0a8bb2cda3d8cfaeaeb

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