Skip to main content

Hermitcraft Video API

This is a python wrapper for the Hermitcraft.com api, that supports retrieving data for hermits and their videos.

The Site was created by hypnotised, and the api is used within the site to get the latest videos and see when hermits are live. This uses those api endpoints allowing us to get the data that the site uses.

Getting started

Go ahead and import the library.

import hermitcraftvideos

Next, we get a hermit from the api. Let's use Xisumavoid for this example.

hermit = hermitcraftvideos.getHermit("xisumavoid")

Make sure that you use the right name. It needs to be the EXACT channel name in the youtube URL in lower case. Example: Mumbo --> https://www.youtube.com/user/ThatMumboJumbo --> thatmumbojumbo

How we have our hermit from the api, we can find out data.

Such as a profile picture

print(hermit.picture) #https://yt3.ggpht.com/-x5tq4dTokyM/AAAAAAAAAAI/AAAAAAAAAAA/x4s30KOqUVA/s88-c-k-no/photo.jpg

Or we can find out a twitter:

print("@{} - {}".format(hermit.twitter.name,hermit.twitter.url)) #@xisumavoid - https://twitter.com/xisumavoid

Or better, if they are live on youtube, twitch or mixer(beam)

print(hermit.youtube.live) #False
print(hermit.twitch.live) #True
print(hermit.mixer.live) #False

We can also get videos!

videos = hermit.getVideos()

You can get simple data from the video

video = videos[0]
print(video.title) #Hermitcraft VI 712 Already Its The End!

And Some handy data

print("video is {} mins long".format(video.duration_time)) #video is 22:49 mins long
print("uploaded {}".format(video.uploaded_time)) #uploaded 7 hours ago 

Oooooh. Statistics

print(video.views) #44430
print(video.likes) # 2785

Oooooooooooooooooooooooooooooooooooooh. Updated Statistics

video.update()
print(video.views) #44440
print(video.likes) # 2790

And That's Mostly it. You can also get a jumble of videos with

hermitcraftvideos.getLatestVideos()

API Reference

Soon!

Metadata

Release files for hermitcraftvideos 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hermitcraftvideos 0.1.1
File Size Uploaded Provenance Actions
hermitcraftvideos-0.1.1.tar.gz 3.3 kB Without provenance Details for hermitcraftvideos-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hermitcraftvideos 0.1.1
File Interpreter ABI Platform Actions
hermitcraftvideos-0.1.1-py3-none-any.whl Python 3 none any Details for hermitcraftvideos-0.1.1-py3-none-any.whl

Total release size: 7.7 kB

Release files / hermitcraftvideos-0.1.1.tar.gz

Download URL hermitcraftvideos-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
26f153e309de1090cde3858cf9caa283b31616a1e302f1b997079b0147195ee4
BLAKE2b-256 checksum
How to use checksums
893e99f45902d61bac972def272455b087cb15b2249b8e6bf1a495f7438ed726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / hermitcraftvideos-0.1.1-py3-none-any.whl

Download URL hermitcraftvideos-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49e96945ce52f15741b9d5c8e6728ab269a8820c9704b72fcbbdd06723c509e3
BLAKE2b-256 checksum
How to use checksums
673903d7c9ea6dc100155ac5fad39b6c3c11466ade78385d5e5eeae798728c13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hermitcraftvideos 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page