Skip to main content

A package made to extract video urls from 2 russian websites

Project description

russianWebBypass

yeah...

requirements

Firefox & gockodriver for firefox

installation

Libs:

  • selenium
pip3 install -U rubypass

or

pip install -U rubypass

websites in question

seasonvar

animevost

docs

main functions

seasonvarByPass(url, maxEps=30)

extracts video urls, season at a time if not maxed out by maxEps, from a provided seasonvar url, extracts original dub if possible

Arguments:

  • url - str, a link to a show from seasonvar(required)
  • maxEps - int, maximum amount of episodes to extract, default is 30(optional)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • vods - list of strings, list of extracted video urls
  • ep - int, maximum amount of episodes available on url

seasonvarByPassEp(url, ep)

extracts a video url of a provided episode from a provided seasonvar url, extracts original dub if possible

Arguments:

  • url - str, a link to a show from seasonvar(required)
  • ep - int, index of an episode to be extracted, can be lower or higher then episode count of the show(required)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • vod - str, url to a video source
  • ep2 - int, processed ep

showInfo(url)

extracts details about the show from a provided seasonvar url

Arguments:

  • url - str, a link to a show from seasonvar(required)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • lolz - list of strings, list of urls to other seasons of the show, if present
  • ep - int, maximum amount of episodes available on url

animevostBypass(url, maxEps=40)

extracts video urls, season at a time if not maxed out by maxEps, from a provided animevost url

Arguments:

  • url - str, a link to a show from animevost(required)
  • maxEps - int, maximum amount of episodes to extract, default is 40(optional)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • lolz - list of strings, list of extracted video urls
  • name[1] - int, maximum amount of episodes available on url

animevostBypassEp(url, ep)

extracts a video url of a provided episode from a provided animevost url

Arguments:

  • url - str, a link to a show from animevost(required)
  • ep - int, index of an episode to be extracted, can be lower or higher then episode count of the show(required)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • vod - str, url to a video source
  • ep2 - int, processed ep

animevostInfo(url)

extracts details about the show from a provided animevost url

Arguments:

  • url - str, a link to a show from animevost(required)

Returns:

  • err - bool, True if an exception occurred in execution, False otherwise
  • eps - list of ints, min and max values about episodes of the show
  • name - str, name of the show
  • lolz - list of strings, list of urls to other seasons of the show, if present

helper functions

klk(elem, driver)

clicks a selenium web element if it's not obscured by anything

Arguments:

  • elem - selenium web element object
  • driver - selenium webDriver object

Returns: None

firefoxDriverInit()

constructs a webDriver object and returns it with parameters

'permissions.default.image' = 2 # images are off
'dom.ipc.plugins.enabled.libflashplayer.so' = False # flash is off
'dom.disable_beforeunload' = True
'media.volume_scale' = '0.0' # volume is 0

firefoxDriverInit2()

constructs a webDriver object and returns it with parameters

'permissions.default.image' = 2 # images are off
'permissions.default.stylesheet' = 2 # most css is off
'dom.ipc.plugins.enabled.libflashplayer.so' = False # flash is off
'dom.disable_beforeunload' = True
'media.volume_scale' = '0.0' # volume is 0

getVod(driver)

returns a source url of a first video element on the page

Argument:

  • driver - selenium webDriver object

Returns:

  • url - str, source url of the video element

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

rubypass-0.2.4.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

rubypass-0.2.4.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rubypass-0.2.4.2.tar.gz.

File metadata

  • Download URL: rubypass-0.2.4.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for rubypass-0.2.4.2.tar.gz
Algorithm Hash digest
SHA256 b7d19a82a63c77f63fb820db91ee0b86e1dc569b9cc57a3074f089f4baceb275
MD5 0f51c89cf9cb1763db0f4711d049a4b3
BLAKE2b-256 25d564845218ed771be57c722b59be7bfa877247e3bb931c99f1c654d64daec6

See more details on using hashes here.

File details

Details for the file rubypass-0.2.4.2-py3-none-any.whl.

File metadata

  • Download URL: rubypass-0.2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for rubypass-0.2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f9f819f0eeb436d6068cff8c6fccd135b3447d49900de5b6fecca74cfd44a5
MD5 16edede06fb91688f2d6927ebcebbfce
BLAKE2b-256 2518828ca8c70bf1c0f40e80c60b94e3c40c87167192924481b7bc8971dcd922

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page