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.36.0.tar.gz (61.4 kB view details)

Uploaded Source

Built Distribution

minet-0.36.0-py3-none-any.whl (92.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minet-0.36.0.tar.gz
  • Upload date:
  • Size: 61.4 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.36.0.tar.gz
Algorithm Hash digest
SHA256 5097f3937fef73558f208b2336c1c386fadadef33aa91ab770bb7d13ae948558
MD5 8bacd449de383195274253140c7cde85
BLAKE2b-256 366010f602061796472cbdaea8826c3142daadc7e14959122e0baa26be0c2fbb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: minet-0.36.0-py3-none-any.whl
  • Upload date:
  • Size: 92.0 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.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4339208efc4574d8a9089d3d075a673543ae21b8b3c9e0333daa183c75153a
MD5 a1869aa815b90d5c9a11f00bbb653833
BLAKE2b-256 c8f5181ac1d10fb2d14595a76b132633c2032eb5ab8102ebcca1debcb56acbd4

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