scraperwiki_local

Local version of scraperwiki scraperlibs
Download

scraperwiki_local Ranking & Summary

Advertisement

  • Rating:
  • License:
  • AGPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Thomas Levine
  • Publisher web site:
  • https://github.com/tlevine/

scraperwiki_local Tags


scraperwiki_local Description

scraperwiki_local is a Python library that aims to be a drop-in replacement for the Python scraperwiki library for use locally. That is, functions will work the same way, and data will go into a local SQLite database; a targeted bombing of ScraperWiki's servers will not stop this local library from working, unless you happen to be running it on one of ScraperWiki's servers.InstallingThis will soon be in PyPI, but for now you can just install from the git repository.DocumentationRead the standard ScraperWiki Python library's documentation, then look below for some quirks about the local version.QuirksThe local library aims to be a drop-in replacement. In reality, the local version sometimes works better, though not all of the features have been implemented.DifferencesDatastore differencesThe local scraperwiki.sqlite is powered by DumpTruck, so some things work a bit differently.Data are stored to a local sqlite database named scraperwiki.db.Bizarre table and column names are supported.Dates and datetimes are stored in a different standard format.scraperwiki.sqlite.execute returns lists of dictionaries.scraperwiki.sqlite.attach downloads the whole datastore from ScraperWiki, So you might not want to use this too often on large databases.scraperwiki.sqlite.get_var and scraperwiki.sqlite.save_var store their data in the table _dumptruckvars, and they use a slightly different format.Other DifferencesStatus of implementationIn general, features that have not been implemented raise a NotImplementedError.Datastorescraperwiki.sqlite is missing the following features.- Data argument to scraperwiki.sqlite.select- All of the verbose keyword arguments (These control what is printed on the ScraperWiki code editor)- scraperwiki.sqlite.show_tables only works for the main database is implemented.GeoThe UK geocoding helpers have not been implemented- scraperwiki.geoUtilsscraperwiki.utils is implemented, as well as the following functions.- scraperwiki.log- scraperwiki.scrape- scraperwiki.pdftoxml- scraperwiki.swimportDeprecatedThese submodules are deprecated and thus will not be implemented.- scraperwiki.apiwrapper- scraperwiki.datastore- scraperwiki.jsqlite- scraperwiki.metadata- scraperwiki.newsqlDevelopmentRun tests with ./runtests; this small wrapper cleans up after itself.Product's homepage


scraperwiki_local Related Software