Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Search the web or a specific domain in your Django project using the Yahoo BOSS API.

Installation

First, add djangobosssearch to INSTALLED_APPS

Using the BOSS API requires a key and a secret. Get them from http://developer.yahoo.com/search/boss/ and add them to your projects settings:

BOSS_API_KEY = ''
BOSS_API_SECRET = ''

Then include the views in your projects urlconf:

urlpatterns = patterns('',
    url(r'^search/$', include('djangobosssearch.bosssearch_urls')),
)

If you want the search to be limited to a certain domain add the following to the settings:

BOSS_SITE_SEARCH_DOMAIN = 'example.com'

Templates

The templates provided are just an example. Pagination on the results page (bosssearch/results.html) is done using django-pagination.

Configuration

Besides the previously mentioned configuration keys, the following options are also useful if you use the provided urlpatterns and view.

BOSS_SEARCH_MARKET The region (country) to search in (default: ‘en-us’).

BOSS_RESULTS_PER_PAGE The number of results per page (default: 50).

Changes

1.1 (2012-07-02)

  • Fixed UnicodeEncodeError caused by oauth request to_url

1.0 (2012-05-11)

  • Initial release

Download files

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

Source Distribution

django-bosssearch-1.1.zip (25.5 kB view details)

Uploaded Source

File details

Details for the file django-bosssearch-1.1.zip.

File metadata

  • Download URL: django-bosssearch-1.1.zip
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-bosssearch-1.1.zip
Algorithm Hash digest
SHA256 451079ee74d4f6751fdb1a2bba6fd6f3395e696b28aa3a93d313fe9f8b4e571f
MD5 9baa0efde6cfb7189cc1a0db0a6c81cc
BLAKE2b-256 1a307889b2f1e455c98ac1d88ef49ac5a1d3dd075ec5d3c088374fd4a99a34ad

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1 This release

1 file

1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page