# Path: malware_crawl/defaults.py
# REQUESTS_SESSIONS = {
#     "api": requests.Session(),
#     "probe": requests.Session()
# }


import tweepy
import re
import feedparser
import subprocess
import redis
from six.moves import map
from celery import task
from malware_crawl.defaults import redis_db, REQUESTS_SESSIONS
    auth.set_access_token(access_token, access_token_secret)

    api = tweepy.API(auth)

    def hash_tag_handle(name):
        name = to_unicode(name)
        if name.startswith('#'):
            name = camelCaseToSentenceCase(name[1:])
        return name

    trends = (item["name"] for item in api.trends_location('1')[0]['trends'])

    return list(map(hash_tag_handle, trends))


@task
def dodgy_trends():
    return [
        "screensavers free download",
        "emma watson nude download",
        "photoshop crack key",
        "free office download",
        "dvd rip warez",
        "justin bieber free lyrics",
        "free download wallpapers",
        "printer driver download"
        "windows crack key",
        "free codec download",
    ]


# Path: malware_crawl/defaults.py
# REQUESTS_SESSIONS = {
#     "api": requests.Session(),
#     "probe": requests.Session()
# }


# Path: malware_crawl/source.py
import tweepy
import re
import feedparser
import subprocess
import redis
from six.moves import map
from celery import task
from malware_crawl.defaults import redis_db, REQUESTS_SESSIONS

    auth.set_access_token(access_token, access_token_secret)

    api = tweepy.API(auth)

    def hash_tag_handle(name):
        name = to_unicode(name)
        if name.startswith('#'):
            name = camelCaseToSentenceCase(name[1:])
        return name

    trends = (item["name"] for item in api.trends_location('1')[0]['trends'])

    return list(map(hash_tag_handle, trends))


@task
def dodgy_trends():
    return [
        "screensavers free download",
        "emma watson nude download",
        "photoshop crack key",
        "free office download",
        "dvd rip warez",
        "justin bieber free lyrics",
        "free download wallpapers",
        "printer driver download"
        "windows crack key",
        "free codec download",
    ]


sources = (dodgy_trends,)