Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

FakerWiki is a library for local testing of Python ScraperWiki scripts.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 scraperwiki
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 setup.py
README.textile

FakerWiki

Fakerwiki is a library for local testing of Python ScraperWiki scripts. Mostly it’s just a copy of the ScraperWiki library with the database bits removed.

Usage

cd fakerwiki
mkvirtualenv --no-site-packages fakerwiki
pip install -r requirements.txt
python setup.py install
python your_script_name.py

You can also use ‘pip install fakerwiki’, but this obviously won’t build out your virtualenv with the standard scraperwiki packages from the requirements.txt in the repository.

What works?

scraperwiki.scrape()
scraperwiki.datastore.save()

What could be added easily?

scraperwiki.datastore.retrieve()
scraperwiki.datastore.fetch()
scraperwiki.metadata.save()
scraperwiki.metadata.get()
geocoding with dummy data
local caching of scraped pages

License

GPLv3 (same as ScraperWiki)

Something went wrong with that request. Please try again.