Skip to main content

Link Archive Tools

Project description

Link Database Tools

Package provides tools that allow to filter databases produced by https://github.com/rumca-js/Django-link-archive.

Can filter or analyze entries from https://github.com/rumca-js/Internet-Places-Database.

Tools

  • DbAnalyzer - provides analysis of the DB contents
  • Db2Feeds - converts database to DB of feeds
  • Db2JSON - converts database to JSON
  • DbFilter - filters database (only bookmarks? only votes?)
  • DbMerge - Merges database with other databse
  • JSON2Db - Converts JSON into datbase
  • Backup - makes backup of postgres tables

DbAnalyzer

usage: dbanalyzer.py [-h] [--db DB] [--search SEARCH] [--order-by ORDER_BY] [--asc] [--desc]
                     [--table TABLE] [--title] [--description] [--status] [--tags] [--social]
                     [--date-published] [--source] [--summary] [--columns] [--rss] [--channels]
                     [--json] [-i] [-v VERBOSITY]

Data analyzer program

options:
  -h, --help            show this help message and exit
  --db DB               DB to be scanned
  --search SEARCH       Search, with syntax same as the main program / site.
  --order-by ORDER_BY   order by column.
  --asc                 order ascending
  --desc                order descending
  --table TABLE         Table name
  --title               displays title
  --description         displays description
  --status              displays status
  --tags                displays tags
  --social              displays social data
  --date-published      displays date-published
  --source              displays source
  --summary             displays summary of tables
  --columns             displays summary of tables column names
  --rss                 displays RSS sources
  --channels            displays channels
  --json                JSON format
  -i, --ignore-case     Ignores case
  -v VERBOSITY, --verbosity VERBOSITY
                        Verbosity level

Db2Feeds

usage: db2feeds.py [-h] [--db DB] [--output-db OUTPUT_DB] [--update-rss] [--clean]
                   [--read-internet-links] [--output-format OUTPUT_FORMAT]
                   [--crawling-server CRAWLING_SERVER]

Data analyzer program

options:
  -h, --help            show this help message and exit
  --db DB               DB to be scanned
  --output-db OUTPUT_DB
                        File to be created
  --update-rss          Reads RSS to check it's title and properties
  --clean               If output db exists, then it is removed at start
  --read-internet-links
                        Reads entries to check if contains RSS. Without it only calculated RSS are
                        returned
  --output-format OUTPUT_FORMAT
                        format of display. LINES, JSON, SQLITE
  --crawling-server CRAWLING_SERVER
                        Remote crawling server

Db2JSON

usage: db2json.py [-h] [--db DB] [--output-dir OUTPUT_DIR] [--rows-max] [-f FORMAT] [-v VERBOSITY]

Data analyzer program

options:
  -h, --help            show this help message and exit
  --db DB               DB to be scanned
  --output-dir OUTPUT_DIR
                        Output directory
  --rows-max            Number of rows per file
  -f FORMAT, --format FORMAT
                        file name format
  -v VERBOSITY, --verbosity VERBOSITY
                        Verbosity level

DbFilter

usage: dbfilter.py [-h] [--db DB] [--output-db OUTPUT_DB] [--bookmarked] [--votes] [--truncate]
                   [-v VERBOSITY]

Data analyzer program

options:
  -h, --help            show this help message and exit
  --db DB               DB to be scanned
  --output-db OUTPUT_DB
                        DB to be created
  --bookmarked          export bookmarks
  --votes               export if votes is > 0
  --truncate            Truncates tables for public
  -v VERBOSITY, --verbosity VERBOSITY
                        Verbosity level

DbMerge

usage: dbmerge.py [-h] [--input-dbs INPUT_DBS] [--output OUTPUT]

Data analyzer program

options:
  -h, --help            show this help message and exit
  --input-dbs INPUT_DBS
                        DBs to be scanned. Delim ,
  --output OUTPUT       DB to be produced

Utils

Reflected tools - provides access table definitions. Model - model data. Classes that allow you to modify, read tables

Installation

pip install linkarchivetools

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

linkarchivetools-0.1.87.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

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

linkarchivetools-0.1.87-py3-none-any.whl (67.5 kB view details)

Uploaded Python 3

File details

Details for the file linkarchivetools-0.1.87.tar.gz.

File metadata

  • Download URL: linkarchivetools-0.1.87.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.12.87+rpt-rpi-v8

File hashes

Hashes for linkarchivetools-0.1.87.tar.gz
Algorithm Hash digest
SHA256 e3ca0d8d4056c7b5fa59de54f0c37769e6a1b44a401a9ccd29cb55d09be4e642
MD5 6269d590632a954b8aa7bf67e28d75ed
BLAKE2b-256 cc566f60401c85fb5c12606ae2948390c845ab462f57f3e8413d0dfce0aad038

See more details on using hashes here.

File details

Details for the file linkarchivetools-0.1.87-py3-none-any.whl.

File metadata

  • Download URL: linkarchivetools-0.1.87-py3-none-any.whl
  • Upload date:
  • Size: 67.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.12.87+rpt-rpi-v8

File hashes

Hashes for linkarchivetools-0.1.87-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3dd9ecde9685c475c0fa19c4713f191e4d27c0758154fa25cf90bf2448a49f
MD5 d9ee6b1c30932747c5495227d2737fa5
BLAKE2b-256 49cf471efd28d4abaa325c21056db9dc802142fd66d225b0202c87e2f88487b9

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