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.3.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.3-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: web2db-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 53d9a0541c21d87640dc45d3521850ee63b8fb7eb06ff7442a4e6c45393df95a
MD5 b6d404c5e8ba8c8325c18b8b04d6f672
BLAKE2b-256 40979ad95453683ef2ed65915fe56087ca71987410e71e022f755df91ff4d26f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: web2db-0.1.3-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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 73c6cc1a37d2951fa07ac04875cbffed4c0898a6536cb64f824cb23b31a0a1b5
MD5 d797db716f38455f212f478041ce0781
BLAKE2b-256 881637fcf700f81ec4333e4ad1560886b51f45bebd0183f50673172ef0abc1ac

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