Giter Site home page Giter Site logo

hdrezka-api's Introduction

HdrezkAPI

python

This project is an API wrapper designed to interact with a comprehensive movie database website, which hosts an extensive collection of films covering various genres, languages, and periods. The primary purpose of this wrapper is to provide a tool for exploring and understanding the capabilities of web APIs and data manipulation.

Disclaimer

This API wrapper has been developed for educational purposes only. The creator of this wrapper does not endorse or promote piracy in any form. The primary goal of this project is to demonstrate the capabilities and uses of API interaction, data scraping, and manipulation techniques for educational and research purposes only.

Acknowledgements

The creator acknowledges that the hdrezka website is known for hosting content without proper authorization from the copyright holders. The intent behind creating this wrapper is not to facilitate access to pirated content but to provide a programming example on how to interact with web APIs. Users of this wrapper are strongly discouraged from using it in any manner that violates copyright laws or supports piracy.

The creator urges all users to respect copyright laws and to use this tool responsibly. Any use of this wrapper to engage in or promote piracy is strictly against the creator's intentions and ethical standards.

Legal Note

By using this API wrapper, you agree to use it in a manner that complies with all applicable laws and regulations. The creator will not be held liable for any misuse of this software or for any legal consequences that arise from such misuse. Users are responsible for ensuring their use of the wrapper is legal and in compliance with copyright laws.

Installation

Install hdrezkapi with pip

pip install hdrezkapi

Usage/Examples

Looking a movie up:

import HdrezkAPI.hdrezka as Hdrezka

rezka = Hdrezka.Hdrezka()
results = rezka.search("The Amazing Spiderman")
for result in results:
    print(result)

Fetching movie infomration:

import HdrezkAPI.hdrezka as Hdrezka

rezka = Hdrezka.Hdrezka()
results = rezka.search("The Amazing Spiderman")
if len(results) == 0:
    print("No results found")
    exit()
test = rezka.get_content_infromation(results[0]['url'])
print(test)

Fetching a stream:

import HdrezkAPI.hdrezka as Hdrezka

rezka = Hdrezka.Hdrezka()
results = rezka.search("The Amazing Spiderman")
if len(results) == 0:
    print("No results found")
    exit()

test = rezka.get_content_infromation(results[0]['url'])
streams = rezka.get_content_video(
    test['post_id'], 
    test['translations']['English'], 
    content_type=test['content_type'],
)
print(streams['480p'][0])

}

hdrezka-api's People

Contributors

miromiro11 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.