# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['opennews']

package_data = \
{'': ['*']}

install_requires = \
['aiohttp', 'feedparser', 'grequests', 'pydantic', 'urllib3']

setup_kwargs = {
    'name': 'opennews',
    'version': '0.1.1',
    'description': 'An open source scraper to get current news.',
    'long_description': '# OpenNews\n\n### An open source news scraper (soon to be an API)\n\n## Usage\n\n```py\nimport opennews\n\nopennews.get_news()\n# title="We spent 5 days testing the iPhone 13 to see if it\'s worth the upgrade" link=\'https://www.cnn.com/2021/09/21/cnn-underscored/apple-iphone-13-review/index.html\' summary="If you\'re in the market for an iPhone and have an 11 or older, now is a really ideal time to upgrade." author=None published=\'Tue, 21 Sep 2021 13:00:53 GMT\' published_parsed=[2021, 9, 21, 13, 0, 53, 1, 264, 0] tags=[] media_content=[Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-super-169.jpg\', medium=\'image\', width=\'1100\', height=\'619\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-large-11.jpg\', medium=\'image\', width=\'300\', height=\'300\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-vertical-large-gallery.jpg\', medium=\'image\', width=\'414\', height=\'552\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-video-synd-2.jpg\', medium=\'image\', width=\'640\', height=\'480\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-live-video.jpg\', medium=\'image\', width=\'576\', height=\'324\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-t1-main.jpg\', medium=\'image\', width=\'250\', height=\'250\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-vertical-gallery.jpg\', medium=\'image\', width=\'270\', height=\'360\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-story-body.jpg\', medium=\'image\', width=\'300\', height=\'169\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-t1-main.jpg\', medium=\'image\', width=\'250\', height=\'250\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-assign.jpg\', medium=\'image\', width=\'248\', height=\'186\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-hp-video.jpg\', medium=\'image\', width=\'256\', height=\'144\')]\n# ... (a ton more)\n```\n\nIt also supports async\n```py\nimport opennews\nimport asyncio\n\nasyncio.run(opennews.get_news_async())\n# title="We spent 5 days testing the iPhone 13 to see if it\'s worth the upgrade" link=\'https://www.cnn.com/2021/09/21/cnn-underscored/apple-iphone-13-review/index.html\' summary="If you\'re in the market for an iPhone and have an 11 or older, now is a really ideal time to upgrade." author=None published=\'Tue, 21 Sep 2021 13:00:53 GMT\' published_parsed=[2021, 9, 21, 13, 0, 53, 1, 264, 0] tags=[] media_content=[Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-super-169.jpg\', medium=\'image\', width=\'1100\', height=\'619\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-large-11.jpg\', medium=\'image\', width=\'300\', height=\'300\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-vertical-large-gallery.jpg\', medium=\'image\', width=\'414\', height=\'552\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-video-synd-2.jpg\', medium=\'image\', width=\'640\', height=\'480\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-live-video.jpg\', medium=\'image\', width=\'576\', height=\'324\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-t1-main.jpg\', medium=\'image\', width=\'250\', height=\'250\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-vertical-gallery.jpg\', medium=\'image\', width=\'270\', height=\'360\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-story-body.jpg\', medium=\'image\', width=\'300\', height=\'169\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-t1-main.jpg\', medium=\'image\', width=\'250\', height=\'250\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-assign.jpg\', medium=\'image\', width=\'248\', height=\'186\'), Media(url=\'https://cdn.cnn.com/cnnnext/dam/assets/210920231929-3-iphone-13-underscored-review-hp-video.jpg\', medium=\'image\', width=\'256\', height=\'144\')]\n# ... (a ton more)\n```\n\nThe scraper currently only scrapes from \n- FOX\n- CNN\n- The Guardian\n- NBC\n- CBS\n- WSJ\n- The New York Times\n- Reuters\n- USA Today\n- Washington Post\n- Huffington Post\n- NPR\n- BBC\n- ED Gov\n- Science Daily\n- Nature\n- NASA Picture of the Day\n- WIRED\n- MacWorld\n- PC World\n- Animal of the Day\n- ABC Australia\n\nIf you want to use one of these, you may do\n```py\nimport opennews\n\nopennews.get_news("cnn")\n\n# This supports async too!\n\nimport asyncio\n\nasyncio.run(opennews.get_news_async("cnn"))\n```\nThe name you can use is the name of the website, lowercased and without spaces. \n\n(From the code: `rss_sources[source[0].lower().replace(" ", "")]`)\n\n\n## License\nThis repository is under the LGPL License as described in the LICENSE file.\n\n\n## Contributing\nPlease open a PR on GitHub if you want to contribute!\n\n## Todo\n\n- [ ] Add more sources\n- [ ] Make an API\n',
    'author': 'Zeb Taylor',
    'author_email': 'zceboys@gmail.com',
    'maintainer': None,
    'maintainer_email': None,
    'url': 'https://github.com/foxnerdsaysmoo/opennews',
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'python_requires': '>=3.8',
}


setup(**setup_kwargs)
