# Path: brede/config.py
# CONFIG_FILENAMES = [
#     'brede.cfg',
#     '~/etc/brede.cfg',
#     '~/brede.cfg']
# DEFAULTS = """
# [requests]
# user_agent = brede
# 
# [data]
# data_dir = ~/brede_data
# """


import re
import requests
from brede.config import config
    from docopt import docopt
        self.url_base = URL_WIKIPEDIA_INDEX
        self.setup_patterns()

    def __str__(self):
        """String representation of object."""
        return "<WikiPage(title={})>".format(self.title)

    @property
    def raw(self):
        """Raw wikitext from Wikipedia page."""
        if self._raw is None:
            self._raw = self.download()
        return self._raw

    def download(self):
        """Download page from Wikipedia.

        Returns
        -------
        text: str
            Content of page

        Examples
        --------
        >>> wp = WikiPage('The Beatles')
        >>> text = wp.download()
        >>> 'John Lennon' in text
        True

        """

# Path: brede/config.py
# CONFIG_FILENAMES = [
#     'brede.cfg',
#     '~/etc/brede.cfg',
#     '~/brede.cfg']
# DEFAULTS = """
# [requests]
# user_agent = brede
# 
# [data]
# data_dir = ~/brede_data
# """


# Path: brede/data/wikipedia.py
import re
import requests
from brede.config import config
    from docopt import docopt

        self.url_base = URL_WIKIPEDIA_INDEX
        self.setup_patterns()

    def __str__(self):
        """String representation of object."""
        return "<WikiPage(title={})>".format(self.title)

    @property
    def raw(self):
        """Raw wikitext from Wikipedia page."""
        if self._raw is None:
            self._raw = self.download()
        return self._raw

    def download(self):
        """Download page from Wikipedia.

        Returns
        -------
        text: str
            Content of page

        Examples
        --------
        >>> wp = WikiPage('The Beatles')
        >>> text = wp.download()
        >>> 'John Lennon' in text
        True

        """

        user_agent = config.get('requests', 'user_agent')