Create a graph from the links on a website and the following sites.
| lib | ||
| misc | ||
| .gitignore | ||
| LICENSE | ||
| linkmapy.py | ||
| README.md | ||
| requirements.txt | ||
linkmapy
Create a graph from the links on a website and the following sites.
Dependencies
- Python 3.9 - 3.10
Pip Dependencies
You can install those dependencies with
pip install -r requirements.txt
Usage
./linkmapy.py [-h] [--dump] [--max-depth N] [--max-links-per-site N] [--http-download-limit NBYTES] [--log] url
-
positional arguments:
urlThe URL of the site you want to start from
-
optional arguments:
-h,--helpshow this help message and exit--dumpOnly output the found connections to the console and exit--max-depth NThe maximum depth at which links will be followed (default: 3)--max-links-per-site NThe maximum amount of links on a page that will be included (default: 3) *--http-download-limit NBYTESThe maximum length of a requested html file download (in bytes) (default: 10000000)--logLog all visited sites and links to stderr
* when there are more than max-links-per-site links on the page, the program will pick max-links-per-site random links and ignore the rest.
The program will visit the website, visit its links and generate a graph from the resulting linkmap. It will write it to ./output.html and it will try to open this html file with your standard browser.
Example
./linkmapy.py example.org
