Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simple tools for downloading, cleaning, extracting and parsing content

Project description


Yet another scrapping tool.

snagit allows you to scrape multiple pages or documents by either running script files, or in the interactive REPL. For instance:

$ snagit
Type "help" for more information. Ctrl+c to exit
> load{} range='0-2'
> print
<html><head><title>Links</title></head><body>0 <a href='/links/3/1'>1</a> <a href='/links/3/2'>2</a> </body></html>
<html><head><title>Links</title></head><body><a href='/links/3/0'>0</a> 1 <a href='/links/3/2'>2</a> </body></html>
<html><head><title>Links</title></head><body><a href='/links/3/0'>0</a> <a href='/links/3/1'>1</a> 2 </body></html>
> select a
> print
<a href="/links/3/1">1</a>
<a href="/links/3/2">2</a>
<a href="/links/3/0">0</a>
<a href="/links/3/2">2</a>
<a href="/links/3/0">0</a>
<a href="/links/3/1">1</a>
> unwrap_attr a href
> print
> list
LOAD '{}' range='0-2'
UNWRAP_ATTR 'a' 'href'


  • Process data as either a text block, lines of text, or HTML (using BeautifulSoup)
  • Built-in scripting language
  • REPL for command line interaction


  • Python 3.5+
  • bs4 (BeautifulSoup 4.x)
  • requests
  • strutil
  • cachely

For testing:

  • pytest
  • pytest-cov

Development and Testing

Assumptions: you have pip and virtualenv installed.

$ virtualenv snagit
$ source bin/activate
$ git clone
$ cd snagit
$ inv develop
$ inv test
$ inv cov

Project details

Release history Release notifications

This version


Download files

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

Files for snagit, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size snagit-0.3.0-py3-none-any.whl (16.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size snagit-0.3.0.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page