Skip to main content

A webmining CLI tool & library for python.

Project description

Build Status

Minet

minet is a webmining CLI tool & library for python that can be used to collect and extract data from a large variety of web sources such as raw webpages, Facebook, CrowdTangle, YouTube, Twitter, Media Cloud etc.

It adopts a lo-fi approach to various webmining problems by letting you perform a variety of actions from the comfort of your command line. No database needed: raw data files such as CSV should be sufficient to do the work.

In addition, minet also exposes its high-level programmatic interface as a python library so you can tweak its behavior at will.

Use cases

  • Downloading large amount of urls very fast. (example)
  • Writing scrapers to extract structured data from HTML pages.
  • Writing crawlers to automatically browse the web.
  • Extract raw text content from HTML pages. (example)
  • Normalize batches of urls contained in a CSV file to perform relevant aggregations (dropping irrelevant query items, extracting domain name etc.) (example)
  • Join two CSV files based on columns containing urls needing to be organized hierarchically.
  • Collecting data from CrowdTangle API (to collect and search posts mainly from Facebook and Instagram).
  • Collecting data from Facebook (comments, likes etc.)
  • Parsing Facebook urls in a CSV file.
  • Collecting data from Twitter (users, followers, followees etc.)
  • Collecting data from YouTube (captions, comments, video metadata etc.)
  • Parsing YouTube urls in a CSV file.
  • Dumping a Hyphe corpus.
  • Collecting data from Media Cloud (search stories, dump topics etc.).

Features (from a technical standpoint)

  • Multithreaded, memory-efficient fetching from the web.
  • Multithreaded, scalable crawling using a comfy DSL.
  • Multiprocessed raw text content extraction from HTML pages.
  • Multiprocessed scraping from HTML pages using a comfy DSL.
  • URL-related heuristics utilities such as extraction, normalization and matching.
  • Data collection from various APIs such as CrowdTangle.

Installation

minet can be installed using pip:

pip install minet

If you need more help to install and use minet from scratch, you can check those installation documents.

Cookbook

To learn how to use minet and understand how it may fit your use cases, you should definitely check out our Cookbook.

Usage

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minet-0.35.5.tar.gz (61.3 kB view details)

Uploaded Source

Built Distribution

minet-0.35.5-py3-none-any.whl (91.7 kB view details)

Uploaded Python 3

File details

Details for the file minet-0.35.5.tar.gz.

File metadata

  • Download URL: minet-0.35.5.tar.gz
  • Upload date:
  • Size: 61.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9

File hashes

Hashes for minet-0.35.5.tar.gz
Algorithm Hash digest
SHA256 63d62d07d4aa416ff5f7b8b49842b2e18216a12a675dc145d2d7ab972cb5e5c5
MD5 1ba3a84b2c09733da78deaf889903355
BLAKE2b-256 bbf3ea2c99f24c130e12ea27a25f7b75e7174fcbd965357c469388a785a70d42

See more details on using hashes here.

Provenance

File details

Details for the file minet-0.35.5-py3-none-any.whl.

File metadata

  • Download URL: minet-0.35.5-py3-none-any.whl
  • Upload date:
  • Size: 91.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9

File hashes

Hashes for minet-0.35.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d6a9e569365e41f95d06bf89f7c40574d9d8ce8ad06019cc6e7f52e12582ad
MD5 ca1c5c850c6a22b2a3c54d6e8e4b080e
BLAKE2b-256 6568c394ff63001d63f9603a4a7896ddffb432e1decb6373d8a3a3a411954678

See more details on using hashes here.

Provenance

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