Skip to main content

www spider producing an adjacency matrix

Project description

DESCRIPTION
w2m is essentially a Python 2.7 module providing the W2M class. The W2M class
is a www spider which explores a subset of the www, extracts the adjacency
matrix of the oriented graph, and saves it as a GNU-Octave .mat file. If numpy
and matplotlib are available, it computes the spectrum of the adjacency matrix
and plots the result. The list of vertices and an image of the matrix are also
produced. The file w2m.py can be used as a module or as a script handling
command line arguments. W2M uses threading. W2M does not depend on modules
outside the standard library, except numpy and matplotlib, which are optional.
This makes more easy the possible 2to3 transition.

COPYRIGHT and LICENSE
Copyright (c), 2011, 2012, Djalil CHAFAI http://djalil.chafai.net/
This program is free software, protected by the following license:
GNU General Public License (GPL)

FILE LIST
w2m.py Python module (source)
examples/ examples on small Wikipedias (Kabyle and Mahori)
setup.py setup file for distutils http://docs.python.org/distutils/
PKG-INFO package information file produced by setup.py (distutils)

TYPICAL USAGE AS A SCRIPT
chmod +x w2m.py
./w2m.py --help
# and if you use the Bash shell:
/w2m.py --start someurl > output.lst 2>&1 & tail -f output.lst

DEPENDENCIES
Written for Python 2.7. Some outputs require numpy and matplotlib modules.
For Debian GNU/Linux wheezy: apt-get install python-matplotlib

VERSION, CHANGELOG, HISTORY, TODO
See w2m.py file.

LATEST VERSION
See http://pypi.python.org/pypi/w2m/

EOF

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

w2m-0.2.zip (482.0 kB view details)

Uploaded Source

File details

Details for the file w2m-0.2.zip.

File metadata

  • Download URL: w2m-0.2.zip
  • Upload date:
  • Size: 482.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for w2m-0.2.zip
Algorithm Hash digest
SHA256 243df6b065b6bdecc2faebe6d9ed5fbd4db1f17b122b28c5f7ec70f5724cc10c
MD5 5d931d16c8f2549261936f6f85f5d55d
BLAKE2b-256 a7a2fdece2abb1e25a285d1e9e21bb98fc058a1a0da320670c0bb46a98d03b67

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