Skip to main content

LLM-friendly scraper for media and text from social media and the open web.

Project description

scrapeMM: Multimodal Web Retrieval

Simple web scraper to asynchronously retrieve webpages and access social media contents, fetching text along with media, i.e., images and videos.

This library aims to help developers and researchers to easily access multimodal data from the web and use it for LLM processing.

Usage

from scrapemm import retrieve
import asyncio

url = "https://example.com"
loop = asyncio.get_event_loop()
result = loop.run_until_complete(retrieve(url))
result.render()

scrapeMM will ask you for the API keys needed for the social media integrations. You may skip them if you don't need them. You will also be prompted to choose a password that is used to secure the secrets in an encrypted file.

How it works

Input:                                  Output:
URL (string)   -->   retrieve()   -->   MultimodalSequence

The MultimodalSequence is a sequence of Markdown-formatted text and media provided by the ezMM library.

Web scraping is done with Firecrawl.

Supported Proprietary APIs

  • ✅ X/Twitter
  • ✅ Telegram
  • ✅ Bluesky
  • ✅ TikTok
  • ⏳ Threads
  • ⏳ Reddit
  • ⏳ Facebook
  • ⏳ Instagram

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

scrapemm-0.2.1.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapemm-0.2.1-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file scrapemm-0.2.1.tar.gz.

File metadata

  • Download URL: scrapemm-0.2.1.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for scrapemm-0.2.1.tar.gz
Algorithm Hash digest
SHA256 be76549d66e54d1bf137afaff39d30c4c3e01e01a58edaaac573e357cbe3be51
MD5 b35f58b3a3883c892cc195803bec92e1
BLAKE2b-256 96669a0b0e270551b5860cd695f454a2209b507cceaf3901b4e81ea366252601

See more details on using hashes here.

File details

Details for the file scrapemm-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: scrapemm-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for scrapemm-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1175ba0a1ef80950c0e37800bc5d86568fd9feb51961dac4b5ff7cf39608460
MD5 069c3864aebe17fdd976e034cb2c46d8
BLAKE2b-256 d5b3ed254d1184e25e4a8079062b95fd2ae02815fbe48fa4f52c8f7ee8f4b512

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page