Stashing the html for later


License
MIT
Install
pip install webStash==0.0.11

Documentation

webStash

Waffle.io - Columns and their card count

Use Case

This package is intended as a tool to help the scraping process by caching the html and other stuff such as screenshots, if available.

Installation

This package is available on pypi. So, to install,

sudo pip3 install webStash

Examples

This is probably the most general use case:

from bs4 import BeautifulSoup
import webStash

stash = webStash.WebStash()
web_data = stash.get_web_data('https://news.ycombinator.com')
html = web_data.html

If you do this, consequent calls of stash.get_web_data('https://news.ycombinator.com') will grab the stashed WebData object. The next most common thing would be deleting https://news.ycombinator.com from the cache. This is how you would do this:

import webStash

stash = webStash.WebStash()
stash.delete('https://news.ycombinator.com')