pybrainyquote


Namepybrainyquote JSON
Version 1.2 PyPI version JSON
download
home_pagehttps://github.com/Freakwill/pybrainyquote
SummaryGet quotes from brainyquote. Make you life positive.
upload_time2023-03-31 10:37:44
maintainer
docs_urlNone
authorWilliam Song
requires_python>=3.7,<4.0
licenseMIT
keywords brainyquote crawler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyBrainyquote


Get quotes from brainyquote. Make you life positive. :smile:

## Requirements


- requests
- bs4
- furl


## Download


pip install pybrainyquote


## Why

The original one `brainyquote` is too simple. 


## Grammar

#### import

```python
from pybrainyquote import *

# or
# import pybrainyquote as bq
```

#### get quotes
```python
Quote.today(topic=what you like) # get today topic
get_popular_topics() # have a look at the lists popular topics, if you do not have any idea
get_topics()
get_authors()

# just try the following, methods mimicking `bs4`
Quote.find_all(topic)
Quote.find(topic)
Quote.find(topic)

Quote.choice_yaml(yamlfile) # choose a quote in yaml files randomly
Quote.read_yaml(yamlfile)
```

## Future

Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)



Support f-string from now on!
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Freakwill/pybrainyquote",
    "name": "pybrainyquote",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "brainyquote,crawler",
    "author": "William Song",
    "author_email": "30965609+Freakwill@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/48/e4/6a52a690d921d96292bbb5480cd202217e4f8006d618c9fcf6d07b88b792/pybrainyquote-1.2.tar.gz",
    "platform": null,
    "description": "# PyBrainyquote\n\n\nGet quotes from brainyquote. Make you life positive. :smile:\n\n## Requirements\n\n\n- requests\n- bs4\n- furl\n\n\n## Download\n\n\npip install pybrainyquote\n\n\n## Why\n\nThe original one `brainyquote` is too simple. \n\n\n## Grammar\n\n#### import\n\n```python\nfrom pybrainyquote import *\n\n# or\n# import pybrainyquote as bq\n```\n\n#### get quotes\n```python\nQuote.today(topic=what you like) # get today topic\nget_popular_topics() # have a look at the lists popular topics, if you do not have any idea\nget_topics()\nget_authors()\n\n# just try the following, methods mimicking `bs4`\nQuote.find_all(topic)\nQuote.find(topic)\nQuote.find(topic)\n\nQuote.choice_yaml(yamlfile) # choose a quote in yaml files randomly\nQuote.read_yaml(yamlfile)\n```\n\n## Future\n\nDefine a search engine for quotes, and a method to get one quote randomly. (Completed partly)\n\n\n\nSupport f-string from now on!",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Get quotes from brainyquote. Make you life positive.",
    "version": "1.2",
    "split_keywords": [
        "brainyquote",
        "crawler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0786a9fbb1c401e3021c5fc95781463b8e66d1c343e4a072fd3cf8c08dd2467d",
                "md5": "3b10d48dc75fd1ac94c1c35ee7ddda7f",
                "sha256": "1b0294315874f8eab48d43466d1006debb5c5cd09d12c52d941d2fbff0407888"
            },
            "downloads": -1,
            "filename": "pybrainyquote-1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3b10d48dc75fd1ac94c1c35ee7ddda7f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 4145,
            "upload_time": "2023-03-31T10:37:42",
            "upload_time_iso_8601": "2023-03-31T10:37:42.641447Z",
            "url": "https://files.pythonhosted.org/packages/07/86/a9fbb1c401e3021c5fc95781463b8e66d1c343e4a072fd3cf8c08dd2467d/pybrainyquote-1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "48e46a52a690d921d96292bbb5480cd202217e4f8006d618c9fcf6d07b88b792",
                "md5": "c68b1378cadfed5c36046f5c9152ca71",
                "sha256": "16561f62eb34c8f9fdb409a488e50975cc9f372b146708781fae7db15f8b291e"
            },
            "downloads": -1,
            "filename": "pybrainyquote-1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c68b1378cadfed5c36046f5c9152ca71",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 4110,
            "upload_time": "2023-03-31T10:37:44",
            "upload_time_iso_8601": "2023-03-31T10:37:44.386429Z",
            "url": "https://files.pythonhosted.org/packages/48/e4/6a52a690d921d96292bbb5480cd202217e4f8006d618c9fcf6d07b88b792/pybrainyquote-1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-31 10:37:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Freakwill",
    "github_project": "pybrainyquote",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pybrainyquote"
}
        
Elapsed time: 0.11235s