-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAggregator.py
62 lines (48 loc) · 1.1 KB
/
Aggregator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from AllCategories import allcategories as al
from Science import science as sci
from Technology import technology as tech
from Gaming import gaming as game
from Automobile import automobile as auto
from Sports import sports
import random
_allCat = al.getAll
def getScience():
science = al.getScience() + sci.getScience()
random.shuffle(science)
return science
def getTech():
techn = al.getTech() + tech.getTech()
random.shuffle(techn)
return techn
def getEntertainment():
return al.getEntertainment()
def getBusiness():
return al.getBusiness()
# def getCulture():
# return al.getCulture()
def getIndia():
return al.getIndia()
def getAuto():
return auto.getAuto()
def getSports():
return al.getSports() + sports.getSports()
def getGaming():
return game.getGame()
def getAll():
allcats =_allCat()+ getScience()+getTech()+getAuto()+getSports()+getGaming()
random.shuffle(allcats)
return allcats
def getPolitics():
return al.getPolitics()
'''
Available Categories Are
Technology
Science
Entertainment
Business
Culture
India
Auto
Sports
Gaming
'''