1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-02-04 13:34:19 +01:00
pirate-get/pirate/data.py
2016-01-17 15:21:32 +01:00

17 lines
470 B
Python

import json
import pkgutil
def get_resource(filename):
return pkgutil.get_data(__package__, 'data/' + filename)
categories = json.loads(get_resource('categories.json').decode())
sorts = json.loads(get_resource('sorts.json').decode())
blacklist = set(json.loads(get_resource('blacklist.json').decode()))
default_headers = {'User-Agent': 'pirate get'}
default_timeout = 10
MIRROR_DEFAULT = 'https://thepiratebay.mn'
MIRROR_SOURCE = 'https://proxybay.co/list.txt'