Skip to main content

Fetch webpage full-text, persist link and full text to SQLITE3 db, resumable with tqdm progressbar.

Project description

web2db

Fetches the full text of input URLs and persists them to sqlite3 DB file.
Fetching is resumable and comes with a progressbar.

Install:

pip install web2db

Quickstart:

import web2db  
web2db.dump('data.db', urls=[
    'https://www.google.com',
    'https://www.yahoo.com',
    'https://www.msn.com'
])

Query the DB file:

df = web2db.to_df(sqlite3_file_path)
print(df.shape)
print(df)

SQL Schema:

  • Table:
    • WebPages: (url text, fulltext text)

Features:

  • Resumable webpage fetching
  • Saves to local SQLITE3 DB
  • tqdm progress bar

Project details


Download files

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

Source Distribution

web2db-0.1.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

web2db-0.1.2-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file web2db-0.1.2.tar.gz.

File metadata

  • Download URL: web2db-0.1.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for web2db-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8822158d51652e73ff144af88a0889c46d4263c7425cd29aa453d59a0a0ce650
MD5 124516357a733e10151028ccadd91c26
BLAKE2b-256 f9e25f18ff3dd8c22af50bceaec2114308f8222e3fee4391bd6640c2008b4fa9

See more details on using hashes here.

File details

Details for the file web2db-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: web2db-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for web2db-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42d018e586a501e33b9d57522a4be40e93693de4a7c4e9eb74eb457a73525924
MD5 45f6b196ce4b9f0051f0aa9008ac3c29
BLAKE2b-256 7e939dd708dab8bd0a370af28d4cd749240039a743734206677606747f1bbbb9

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