#!/usr/bin/python3
"""This module consumes the reddit api"""

import requests


def number_of_subscribers(subreddit):
    my_header = {'User-agent': 'Mozilla/5.0'}
    r = requests.get(
        'https://www.reddit.com/r/{}/about.json'.format(
            subreddit), headers=my_header)
    if r.status_code != 200:
        return 0
    to_json = r.json()
    my_data = to_json['data']['subscribers']
    return my_data

47d27a96903b1f30e99cad8c4f96e398e5d5f903
<mask token>

<mask token>


def number_of_subscribers(subreddit):
    my_header = {'User-agent': 'Mozilla/5.0'}
    r = requests.get('https://www.reddit.com/r/{}/about.json'.format(
        subreddit), headers=my_header)
    if r.status_code != 200:
        return 0
    to_json = r.json()
    my_data = to_json['data']['subscribers']
    return my_data

<mask token>
import requests


def number_of_subscribers(subreddit):
    my_header = {'User-agent': 'Mozilla/5.0'}
    r = requests.get('https://www.reddit.com/r/{}/about.json'.format(
        subreddit), headers=my_header)
    if r.status_code != 200:
        return 0
    to_json = r.json()
    my_data = to_json['data']['subscribers']
    return my_data

#!/usr/bin/python3
"""This module consumes the reddit api"""

import requests


def number_of_subscribers(subreddit):
    my_header = {'User-agent': 'Mozilla/5.0'}
    r = requests.get(
        'https://www.reddit.com/r/{}/about.json'.format(
            subreddit), headers=my_header)
    if r.status_code != 200:
        return 0
    to_json = r.json()
    my_data = to_json['data']['subscribers']
    return my_data
