obscraper


Nameobscraper JSON
Version 0.8.3 PyPI version JSON
download
home_page
Summaryobscraper: scrape posts from the overcomingbias blog
upload_time2022-12-18 23:56:57
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2022 Christopher McDonald Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords api bs4 overcomingbias
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/chris-mcdo/obscraper/main/docs/source/img/logo.svg
   :target: https://obscraper.readthedocs.io/en/stable/
   :align: center
   :height: 200
   :alt: obscraper


obscraper: scrape posts from the overcomingbias blog
====================================================

.. image:: https://img.shields.io/pypi/v/obscraper.svg
    :target: https://pypi.org/project/obscraper/
    :alt: Project Version on PyPI

.. image:: https://img.shields.io/pypi/pyversions/obscraper.svg
    :target: https://pypi.org/project/obscraper/
    :alt: Supported Python Versions

.. image:: https://readthedocs.org/projects/obscraper/badge/?version=latest
  :target: https://obscraper.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

.. image:: https://codecov.io/gh/chris-mcdo/obscraper/branch/main/graph/badge.svg
  :target: https://codecov.io/gh/chris-mcdo/obscraper
  :alt: Unit Test Coverage
  
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  :target: https://github.com/psf/black
  :alt: Code Style: Black

.. image:: https://img.shields.io/badge/license-MIT-purple
  :target: https://github.com/chris-mcdo/obscraper/blob/main/LICENSE
  :alt: MIT License


``obscraper`` lets you scrape blog posts and associated metadata from the
`overcomingbias <https://www.overcomingbias.com/>`_ blog.

It's easy to get a single post::

    >>> import obscraper
    >>> intro_url = 'https://www.overcomingbias.com/2006/11/introduction.html'
    >>> post = obscraper.get_post_by_url(intro_url)
    >>> post.title
    'How To Join'
    >>> post.plaintext
    'How can we better believe what is true? ...'
    >>> post.internal_links
    {'http://www.overcomingbias.com/2007/02/moderate_modera.html': 1, 
    'http://www.overcomingbias.com/2006/12/contributors_be.html': 1}
    >>> post.comments
    20

Or a full list of post URLs and edit dates::

    >>> import obscraper
    >>> edit_dates = obscraper.get_edit_dates()
    ...
    >>> len(edit_dates)
    4352
    >>> {url: str(edit_dates[url]) for url in list(edit_dates)[:5]}
    {'2022/01/much-talk-is-sales-patter':
    '2022-01-14 20:46:35+00:00',
    '2022/01/old-man-rant':
    '2022-01-13 15:21:33+00:00',
    '2022/01/my-11-bets-at-10-1-odds-on-10m-covid-deaths-by-2022':
    '2022-01-12 19:15:10+00:00',
    '2022/01/to-innovate-unify-or-fragment':
    '2022-01-11 01:03:44+00:00',
    '2022/01/on-what-is-advice-useful':
    '2022-01-10 18:46:26+00:00'}

Features
********

- Get posts by their URLs or edit dates, or get all posts hosted on the
  overcomingbias site

- Provides detailed post metadata including post URLs, titles, authors, tags,
  publish dates, and last edit dates

- Provides summary of post content including full post text as HTML or
  plaintext, and a list of hyperlinks to other overcomingbias posts

- Asynchronous execution and caching for fast downloads

- Use via ``import obscraper`` or the simple command line interface

- Comprehensively tested

- Supports python 3.8+

Documentation
*************

Read the full documentation `here <https://obscraper.readthedocs.io/en/stable/>`_,
including the `Installation and Getting Started Guide
<https://obscraper.readthedocs.io/en/stable/getting-started.html>`_ and the
`Public API Reference <https://obscraper.readthedocs.io/en/stable/api.html>`_.


Bugs/Requests
*************

Please use the `GitHub issue tracker <https://github.com/chris-mcdo/obscraper/issues>`_
to submit bugs or request features.

Changelog
*********

See the `Changelog <https://obscraper.readthedocs.io/en/stable/changelog.html>`_
for a list of fixes and enhancements at each version.

License
*******

Copyright (c) 2022 Christopher McDonald

Distributed under the terms of the
`MIT <https://github.com/chris-mcdo/obscraper/blob/main/LICENSE>`_ license.

All overcomingbias posts are copyright the original authors.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "obscraper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "api,bs4,overcomingbias",
    "author": "",
    "author_email": "Christopher McDonald <cmcdonal33@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b8/16/2fab493d46755b30c4972fb43cf93e55d469ad2e947ca1230e6cc581ab10/obscraper-0.8.3.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/chris-mcdo/obscraper/main/docs/source/img/logo.svg\n   :target: https://obscraper.readthedocs.io/en/stable/\n   :align: center\n   :height: 200\n   :alt: obscraper\n\n\nobscraper: scrape posts from the overcomingbias blog\n====================================================\n\n.. image:: https://img.shields.io/pypi/v/obscraper.svg\n    :target: https://pypi.org/project/obscraper/\n    :alt: Project Version on PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/obscraper.svg\n    :target: https://pypi.org/project/obscraper/\n    :alt: Supported Python Versions\n\n.. image:: https://readthedocs.org/projects/obscraper/badge/?version=latest\n  :target: https://obscraper.readthedocs.io/en/latest/?badge=latest\n  :alt: Documentation Status\n\n.. image:: https://codecov.io/gh/chris-mcdo/obscraper/branch/main/graph/badge.svg\n  :target: https://codecov.io/gh/chris-mcdo/obscraper\n  :alt: Unit Test Coverage\n  \n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n  :target: https://github.com/psf/black\n  :alt: Code Style: Black\n\n.. image:: https://img.shields.io/badge/license-MIT-purple\n  :target: https://github.com/chris-mcdo/obscraper/blob/main/LICENSE\n  :alt: MIT License\n\n\n``obscraper`` lets you scrape blog posts and associated metadata from the\n`overcomingbias <https://www.overcomingbias.com/>`_ blog.\n\nIt's easy to get a single post::\n\n    >>> import obscraper\n    >>> intro_url = 'https://www.overcomingbias.com/2006/11/introduction.html'\n    >>> post = obscraper.get_post_by_url(intro_url)\n    >>> post.title\n    'How To Join'\n    >>> post.plaintext\n    'How can we better believe what is true? ...'\n    >>> post.internal_links\n    {'http://www.overcomingbias.com/2007/02/moderate_modera.html': 1, \n    'http://www.overcomingbias.com/2006/12/contributors_be.html': 1}\n    >>> post.comments\n    20\n\nOr a full list of post URLs and edit dates::\n\n    >>> import obscraper\n    >>> edit_dates = obscraper.get_edit_dates()\n    ...\n    >>> len(edit_dates)\n    4352\n    >>> {url: str(edit_dates[url]) for url in list(edit_dates)[:5]}\n    {'2022/01/much-talk-is-sales-patter':\n    '2022-01-14 20:46:35+00:00',\n    '2022/01/old-man-rant':\n    '2022-01-13 15:21:33+00:00',\n    '2022/01/my-11-bets-at-10-1-odds-on-10m-covid-deaths-by-2022':\n    '2022-01-12 19:15:10+00:00',\n    '2022/01/to-innovate-unify-or-fragment':\n    '2022-01-11 01:03:44+00:00',\n    '2022/01/on-what-is-advice-useful':\n    '2022-01-10 18:46:26+00:00'}\n\nFeatures\n********\n\n- Get posts by their URLs or edit dates, or get all posts hosted on the\n  overcomingbias site\n\n- Provides detailed post metadata including post URLs, titles, authors, tags,\n  publish dates, and last edit dates\n\n- Provides summary of post content including full post text as HTML or\n  plaintext, and a list of hyperlinks to other overcomingbias posts\n\n- Asynchronous execution and caching for fast downloads\n\n- Use via ``import obscraper`` or the simple command line interface\n\n- Comprehensively tested\n\n- Supports python 3.8+\n\nDocumentation\n*************\n\nRead the full documentation `here <https://obscraper.readthedocs.io/en/stable/>`_,\nincluding the `Installation and Getting Started Guide\n<https://obscraper.readthedocs.io/en/stable/getting-started.html>`_ and the\n`Public API Reference <https://obscraper.readthedocs.io/en/stable/api.html>`_.\n\n\nBugs/Requests\n*************\n\nPlease use the `GitHub issue tracker <https://github.com/chris-mcdo/obscraper/issues>`_\nto submit bugs or request features.\n\nChangelog\n*********\n\nSee the `Changelog <https://obscraper.readthedocs.io/en/stable/changelog.html>`_\nfor a list of fixes and enhancements at each version.\n\nLicense\n*******\n\nCopyright (c) 2022 Christopher McDonald\n\nDistributed under the terms of the\n`MIT <https://github.com/chris-mcdo/obscraper/blob/main/LICENSE>`_ license.\n\nAll overcomingbias posts are copyright the original authors.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 Christopher McDonald  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "obscraper: scrape posts from the overcomingbias blog",
    "version": "0.8.3",
    "split_keywords": [
        "api",
        "bs4",
        "overcomingbias"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "08f20f2b590fe632e8145463318109b8",
                "sha256": "35f717e5a0764176f1e537161fcfbc61123f51be6fa9533cc65e688f3fe2884b"
            },
            "downloads": -1,
            "filename": "obscraper-0.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "08f20f2b590fe632e8145463318109b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 21595,
            "upload_time": "2022-12-18T23:56:55",
            "upload_time_iso_8601": "2022-12-18T23:56:55.886737Z",
            "url": "https://files.pythonhosted.org/packages/8b/34/606c14e523299c8495de1718fcdf055f7dcc3608c31e0dde9a75397932e1/obscraper-0.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "40d4c11aff9e7822a4b11f85a4a6b880",
                "sha256": "98c54e35430805443d660138b3847c45f982ffd3db7c6ea5cb5f9d42c1ee6c75"
            },
            "downloads": -1,
            "filename": "obscraper-0.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "40d4c11aff9e7822a4b11f85a4a6b880",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 38865,
            "upload_time": "2022-12-18T23:56:57",
            "upload_time_iso_8601": "2022-12-18T23:56:57.264066Z",
            "url": "https://files.pythonhosted.org/packages/b8/16/2fab493d46755b30c4972fb43cf93e55d469ad2e947ca1230e6cc581ab10/obscraper-0.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-18 23:56:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "obscraper"
}
        
Elapsed time: 0.03744s