-
Notifications
You must be signed in to change notification settings - Fork 1
/
mother_of_all_scripts.py
99 lines (75 loc) · 2.67 KB
/
mother_of_all_scripts.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# !/usr/bin/python
# -*- coding: utf-8 -*-
from script.trello_script import *
from script.firefox_script import *
from script.jdownloader_script import *
from script.twitter_script import *
from script.steam_script import *
from script.reddit_script import *
from script.pocket_script import *
from script.youtube_script import *
from logger_setup import *
# MAIN SCRIPT ----------------------------------------------------------------------------------------------------------
def mother_of_all_scripts():
logging.info("creating the root path directory of Phoenix Down Script...")
create_directory(PD_SCRIPT_ROOT_LOGS_PATH)
tlls = TrelloScript()
tlls.run_script()
twts = TwitterScript()
twts.run_script()
stms = SteamScript()
stms.run_script()
rs = RedditScript()
rs.run_script()
ps = PocketScript()
ps.run_script()
ys = YoutubeScript()
ys.run_script()
js = JdownloaderScript()
js.run_script()
fs = FirefoxScript()
fs.run_script()
# SAMPLE REQUESTS ------------------------------------------------------------------------------------------------------
# TRELLO SAMPLE
# get_board_by_id(TRELLO_MBL_BOARD_ID)
# get_open_cards_by_board_id(TRELLO_MBL_BOARD_ID)
# get_card_by_id(TRELLO_CH_CARD_ID)
# get_boards_by_member_username(TRELLO_MEMBER_USERNAME)
# get_lists_on_a_board(TRELLO_MBL_BOARD_ID)
# get_lists_on_a_board(TRELLO_ALERT_BOARD_ID)
# get_labels_on_a_board(TRELLO_MBL_BOARD_ID)
# get_labels_on_a_board(TRELLO_ALERT_BOARD_ID)
# create_a_new_card(TRELLO_MBL_BOARD_ADMIN_LIST_ID, TRELLO_MBL_URGENT_CUSTOM_LABEL_ID)
# create_a_new_card(TRELLO_ALERT_BOARD_ALERT_LIST_ID, TRELLO_ALERT_URGENT_CUSTOM_LABEL_ID)
# TWITTER SAMPLE
# get_timeline()
# update_status()
# get_user_by_id(TWITTER_USER_ID)
# get_followers_id(TWITTER_USER_ID)
# get_friends_id(TWITTER_USER_ID)
# get_all_tweets_for_a_user(TWITTER_USER_ID) # WARNING : very long processing time
# get_rate_limit_status()
# WARNING : Rate limit window per 15 minutes = 15 requests x 20 followers per page = 300 followers
# get_followers(TWITTER_USER_ID)
# STEAM SAMPLE
# get_user_name(STEAM_USER_ID)
# get_game_name_by_id(546560) # Half-Life : Alyx AppId
# get_friend_list()
# get_owned_games()
# get_wishlist()
# REDDIT SAMPLE
# reddit_request_token()
# get_my_identity()
# get_saved_posts()
# get_subscribed_subreddits()
# POCKET SAMPLE
# pocket_request_token()
# authorize_app()
# get_pocket_access_token()
# authorize_app_and_get_access_token()
# get_user_datas()
# YOUTUBE SAMPLE
# get_channel_details_by_channel_id(YOUTUBE_USER_ID)
# get_my_subscriptions()
# get_playlists_by_channel_id(YOUTUBE_USER_ID)
# get_playlist_items_by_playlist_id(YOUTUBE_USER_PLAYLIST_FAVORITES_ID)