Metadata-Version: 2.1
Name: spiegel-scraper
Version: 1.1.0
Summary: Scrape article metadata and comments from DER SPIEGEL
Home-page: https://github.com/ietz/spiegel-scraper
Author: Tim Pietz
Author-email: tim@pietz.me
License: MIT
Description: # spiegel-scraper
        [![PyPI](https://img.shields.io/pypi/v/spiegel-scraper)](https://pypi.org/project/spiegel-scraper/)
        
        Scrape articles and comments from DER SPIEGEL
        
        ## Setup
        ```bash
        pip install spiegel-scraper
        ```
        
        ## Usage
        ```python
        from datetime import date
        import spiegel_scraper as spon
        
        # list all articles from 2020-01-31
        archive_entries = spon.archive.by_date(date(2020, 1, 31))
        # or, for later replication, retrieve and scrape the html instead
        archive_html = spon.archive.html_by_date(date(2020, 1, 31))
        archive_entries_from_html = spon.archive.scrape_html(archive_html)
        
        # fetch one article by url
        article_url = archive_entries[0]['url']
        article = spon.article.by_url(article_url)
        # or alternatively using the html
        article_html = spon.article.html_by_url(article_url)
        article_from_html = spon.article.scrape_html(article_html)
        
        # retrieve all comments for an article
        comments = spon.comments.by_article_id(article['id'])
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
