# Media Fetcher
A Python package for fetching media details from various platforms, including **Instagram**, **TikTok**, and more. It is designed to be lightweight, modular, and easy to integrate into other projects like Discord bots or web applications.
## Features
- Fetch metadata and media URLs for Instagram posts.
- Fetch metadata and video URLs for TikTok posts.
- Designed to support additional platforms in the future.
- Lightweight and reusable.
## Installation
Clone the repository and install the package manually using your preferred method, such as Poetry or pip.
## Usage
### Import Fetchers
Use the fetchers provided for supported platforms:
from media_fetcher.instagram import InstagramFetcher
from media_fetcher.tiktok import TikTokFetcher
### Example: Fetch Instagram Post
url = "https://www.instagram.com/p/example/"
result = InstagramFetcher.fetch_post(url)
print(result)
### Example: Fetch TikTok Video
url = "https://www.tiktok.com/@example/video/123456789"
result = TikTokFetcher.fetch_video(url)
print(result)
### Output Example
All fetchers return a dictionary with the status and URL. For example:
{
"url": "https://www.instagram.com/p/example/",
"status": "Success"
}
## Adding More Platforms
The package is designed to be extensible. To add support for more platforms, create a new fetcher module in the `media_fetcher` directory, following the existing structure.
## License
This project is licensed under the **Apache-2.0 License**.
Raw data
{
"_id": null,
"home_page": "https://github.com/xl-spooky/media-fetcher",
"name": "media-fetcher",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": "media, fetcher, instagram, tiktok, social media",
"author": "xl_spooky",
"author_email": "spkydevelopment@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d2/a6/06cd8e64c8d5fd49b610cc60156dd5e6a9468df18c1eda11406a90e564a1/media_fetcher-0.1.0.tar.gz",
"platform": null,
"description": "# Media Fetcher\n\nA Python package for fetching media details from various platforms, including **Instagram**, **TikTok**, and more. It is designed to be lightweight, modular, and easy to integrate into other projects like Discord bots or web applications.\n\n## Features\n\n- Fetch metadata and media URLs for Instagram posts.\n- Fetch metadata and video URLs for TikTok posts.\n- Designed to support additional platforms in the future.\n- Lightweight and reusable.\n\n## Installation\n\nClone the repository and install the package manually using your preferred method, such as Poetry or pip.\n\n## Usage\n\n### Import Fetchers\nUse the fetchers provided for supported platforms:\n\nfrom media_fetcher.instagram import InstagramFetcher \nfrom media_fetcher.tiktok import TikTokFetcher \n\n### Example: Fetch Instagram Post\nurl = \"https://www.instagram.com/p/example/\" \nresult = InstagramFetcher.fetch_post(url) \nprint(result) \n\n### Example: Fetch TikTok Video\nurl = \"https://www.tiktok.com/@example/video/123456789\" \nresult = TikTokFetcher.fetch_video(url) \nprint(result) \n\n### Output Example\nAll fetchers return a dictionary with the status and URL. For example:\n\n{ \n \"url\": \"https://www.instagram.com/p/example/\", \n \"status\": \"Success\" \n} \n\n## Adding More Platforms\n\nThe package is designed to be extensible. To add support for more platforms, create a new fetcher module in the `media_fetcher` directory, following the existing structure.\n\n## License\n\nThis project is licensed under the **Apache-2.0 License**.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package for fetching media details from Instagram, TikTok, and other platforms.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/xl-spooky/media-fetcher",
"Repository": "https://github.com/xl-spooky/media-fetcher"
},
"split_keywords": [
"media",
" fetcher",
" instagram",
" tiktok",
" social media"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f6b201047d0ee60bffc4b07ace0f902b98e6cf72100280e4452ca74e069a2137",
"md5": "5bc8b96b772cad27266bef5b5cfa0ebc",
"sha256": "29df37243d37986ce79b0deb17e84ed7e2838472dde42ce5a6565ba5a4226fc8"
},
"downloads": -1,
"filename": "media_fetcher-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5bc8b96b772cad27266bef5b5cfa0ebc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 6330,
"upload_time": "2024-11-23T13:07:42",
"upload_time_iso_8601": "2024-11-23T13:07:42.771734Z",
"url": "https://files.pythonhosted.org/packages/f6/b2/01047d0ee60bffc4b07ace0f902b98e6cf72100280e4452ca74e069a2137/media_fetcher-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d2a606cd8e64c8d5fd49b610cc60156dd5e6a9468df18c1eda11406a90e564a1",
"md5": "3a89d5810277871682256b0d7d442a82",
"sha256": "d04390203a8e463758237949e6df51674bca82bf01a250c064765061cfa0c656"
},
"downloads": -1,
"filename": "media_fetcher-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "3a89d5810277871682256b0d7d442a82",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 6549,
"upload_time": "2024-11-23T13:07:43",
"upload_time_iso_8601": "2024-11-23T13:07:43.887006Z",
"url": "https://files.pythonhosted.org/packages/d2/a6/06cd8e64c8d5fd49b610cc60156dd5e6a9468df18c1eda11406a90e564a1/media_fetcher-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-23 13:07:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xl-spooky",
"github_project": "media-fetcher",
"github_not_found": true,
"lcname": "media-fetcher"
}