Skip to main content

filmot.com API

Project description

Filmot API Wrapper

GitHub PyPI Python

Filmot API Wrapper is a Python package that provides easy programmatically access to the Filmot.com search engine. It simplifies searching YouTube videos by words in subtitles, fetching channel statistics, and historical data.

Prerequisites

Before using the Filmot API Wrapper, you'll need a RapidAPI account and to register to the Filmot app at: Filmot RapidAPI.

Installation

You can install the package using pip directly from PyPI or by cloning the repository from GitHub.

Install from PyPI:

pip install filmot

Install from GitHub (latest development version):

pip install git+ssh://git@github.com/dusking/filmot.git --upgrade

Usage

Using this wrapper is straightforward. It follows the filmot API documentation closely and converts responses into Python objects. Here's an example of how to use it:

from filmot import Filmot

# Optional: Set your RapidAPI key in the config so you won't need to provide it in the usage.
Filmot.set_rapidapi_key("***")

# Initialize the Filmot client
filmot = Filmot()

# Search in YouTube archive
response = filmot.search("Spill The Beans", limit=3)

# Response holds the first 3 results
print(response)
[<SearchResponse "Spill The Beans"-Gct3b0yoabU>,
 <SearchResponse "Spill The Beans"-Gct3b0yoabU>,
 <SearchResponse "Spill The Beans"-ZViO1Gnp2xA>]

# Get the hit count of the first response
first_response = response[0]
print(first_response.hit_count())

# Get the query hits for first response
first_response.hits_data()
[{'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=771.92s',
  'text': "when the beans are ready we're going to Spill the Beans later on in the day okay later on in the day we're going to spill the uh"},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=11058.16s',
  'text': 'the chat right now we have a lot of gases Spill the Beans everybody can we get some Spill the Beans emojis on the chat going you know this is how we do it'},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=11060.68s',
  'text': 'gases Spill the Beans everybody can we get some Spill the Beans emojis on the chat going you know this is how we do it here on LA flights we always have to'},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=11071.96s',
  'text': "beans we have to stir the beans and once the beans are ready then we'll Spill the Beans pretty cool announcement I I think it's cool"},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=13874.88s',
  'text': "whenever we do cross 35 we're going to Spill the Beans okay and I I promise you you're not going to be disappointed at the"},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=16073.399s',
  'text': "happen and we already have the dates get ready can we get the Spill the Beans emji going can we stir the beans yeah believe it or not if you're"},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=16088.159s',
  'text': "Emoji right custom made that you can use during a live show and it says Spill the Beans okay so first part LA flights goes to New York we're going to be visiting"},
 {'link': 'https://www.youtube.com/watch?v=Gct3b0yoabU&t=16130.439s',
  'text': "else I was going to be a zombie uh let's see are we going to have The Spill the Beans emojis let's say yes we have Cheryl sending five memberships by the"}]

# Convert the response to a Python dictionary
response_dict = first_response.to_dict()
print(response_dict)

# Convert the response to JSON format
response_json = first_response.to_json()
print(response_json)

Here's another simple example:

from filmot import Categories, Countries, Language

# Adjust the search query
response = filmot.search("Spill The Beans",
                         category=Categories.GAMING,
                         country=Countries.UNITED_STATES,
                         language=Language.ENGLISH,
                         limit=3)

With this wrapper, accessing Filmot.com API becomes easy and intuitive. Happy coding!

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

filmot-0.0.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

filmot-0.0.3-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file filmot-0.0.3.tar.gz.

File metadata

  • Download URL: filmot-0.0.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for filmot-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6d6e832a9e472a484adb45da6c2b7b12b5467196bd581add61a61fe018fbd501
MD5 50374ad7f5784821116f1b1179ed7c9b
BLAKE2b-256 818979906740edd370c12f454b8b650380d513ddda437fdca0e76055cae5270f

See more details on using hashes here.

File details

Details for the file filmot-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: filmot-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for filmot-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a7bc2511392ae6b2c47af657309bab2728485007ea0929165f4be139d2bfb23
MD5 421911698705bf500cf11cca15e64352
BLAKE2b-256 e786a00afa45d1315a0053a3bfebdd236e50eea1b9f9ea75fce26e8dd601f97b

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