Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    scraperwiki_local 0.1.1

    Download button

    No screenshots available
    Downloads: 123  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Thomas Levine | More programs
    AGPL v3 / FREE
    August 4th, 2012, 07:22 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    scraperwiki_local description

    Local version of scraperwiki scraperlibs

    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.

    Installing

    This will soon be in PyPI, but for now you can just install from the git repository.

    Documentation

    Read the standard ScraperWiki Python library's documentation, then look below for some quirks about the local version.

    Quirks

    The 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.

    Differences

    Datastore differences

    The 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 Differences

    Status of implementation

    In general, features that have not been implemented raise a NotImplementedError.

    Datastore

    scraperwiki.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.

    Geo

    The UK geocoding helpers have not been implemented

    - scraperwiki.geo

    Utils

    scraperwiki.utils is implemented, as well as the following functions.

    - scraperwiki.log
    - scraperwiki.scrape
    - scraperwiki.pdftoxml
    - scraperwiki.swimport

    Deprecated

    These submodules are deprecated and thus will not be implemented.

    - scraperwiki.apiwrapper
    - scraperwiki.datastore
    - scraperwiki.jsqlite
    - scraperwiki.metadata
    - scraperwiki.newsql

    Development

    Run tests with ./runtests; this small wrapper cleans up after itself.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    scraperwiki scraperlibs | local scraperwiki | Python library | Python | scraperwiki | scraperlibs

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM