Skip to main content

Library to access and retrieve quotes from bash.org

Project description

This is a Python library for accessing and printing quotes from bash.org, a quote database on the Internet from various chat sources. It is NOT made by bash.org, or endorsed by them in any way. Note that it merely uses HTML parsing to filter through the site’s content

The BashQuote object can be created directly (BashQuote(8)) or it can be created using various functions. getQuoteSafe and getQuote take a quote number and return a quote object- getQuoteSafe checks to verify the quote exists. Then, getLatestQuote and getRandomQuote will both do HTML parsing to find the quote numbers.

These BashQuote objects then have various helper functions which can return various data about a quote. So, for instance, to get the text of a random quote, BashQuote.getText() will print out all the text. Or to check if a quote is pending, isPending() will return true if the quote has yet to be processed for approval, and so on.

Project details


Release history Release notifications | RSS feed

This version

2.0

Download files

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

Source Distribution

bashquote-2.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file bashquote-2.0.tar.gz.

File metadata

  • Download URL: bashquote-2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bashquote-2.0.tar.gz
Algorithm Hash digest
SHA256 f0a60f5a84bd26f7a8d228453cbb8da255a88b4efe7eb5e61d99d9709dfa01e0
MD5 16b10ee50d813bd185bf75db2825712e
BLAKE2b-256 9e670e398891b1bf276a0837a58edace390f564591776a183fff391ff35214aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page