-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
179 lines (134 loc) · 3.84 KB
/
main.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import time, datetime
from weibo_login import *
from sendweibo import *
from news import *
from bilibili import *
from tumblr import *
from twitterspider import *
from event import *
def updatetwitter(name, tag):
global limit, pausetime
try:
weibos=spider(name, limit)
send(tag, weibos, pausetime, limit)
except Exception as e:
print(e)
print(name, tag)
time.sleep(pausetime)
def updatetumblr(name, tag):
global limit, pausetime
try:
weibos=gettumblr(name, limit)
send(tag, weibos, pausetime, limit)
except Exception as e:
print(e)
print(name, tag)
time.sleep(pausetime)
def updatenews(name, tag):
global limit, pausetime
try:
weibos=getnews(name, limit)
send(tag, weibos, pausetime, limit)
except Exception as e:
print(e)
print(name, tag)
time.sleep(pausetime)
def updatebilibili(name, tag):
global limit, pausetime
try:
weibos=getbili(name, limit)
send(tag, weibos, pausetime, limit)
except Exception as e:
print(e)
print(name, tag)
time.sleep(pausetime)
def updateevent(name, tag):
try:
weibos=getevent(name)
send(tag, weibos, pausetime, limit)
except Exception as e:
print(e)
print(name, tag)
time.sleep(pausetime)
def start():
global limit, pausetime
limit=7
pausetime=0.1
#更新twitter
name='kinmosa_anime'
tag='#TVアニメ「きんいろモザイク」#twitter:'
updatetwitter(name, tag)
name='suzakinishi'
tag='#洲崎西#twitter:'
updatetwitter(name, tag)
name='suzakiaya7_6'
tag='「洲崎綾の7.6」公式twitter:'
updatetwitter(name, tag)
name='suzaki_aya'
tag='#洲崎綾#三十路記念twitter:'
updatetwitter(name, tag)
name='nishi_deliradi'
tag='#西明日香のデリケートゾーン!#twitter:'
updatetwitter(name, tag)
name='nishiasuka_info'
tag='#西明日香#公式ツイッター:'
updatetwitter(name, tag)
name='akekodao'
tag='#明坂聡美#twitter:'
updatetwitter(name, tag)
#更新 tumblr
name='洲崎綾'
tag='#洲崎綾##tumblr#'
updatetumblr(name, tag)
name='西明日香'
tag='#西明日香##tumblr#'
updatetumblr(name, tag)
name='種田梨沙'
tag='#種田梨沙##tumblr#'
updatetumblr(name, tag)
name='佐倉綾音'
tag='#佐倉綾音##tumblr#'
updatetumblr(name, tag)
#更新news
name='洲崎綾'
tag='#洲崎绫##News#'
updatenews(name, tag)
name='西明日香'
tag='#西明日香##News#'
updatenews(name, tag)
name='種田梨沙'
tag='#種田梨沙##News#'
updatenews(name, tag)
name='佐倉綾音'
tag='#佐倉綾音##News#'
updatenews(name, tag)
#更新bilibili
name='洲崎绫'
tag='#洲崎绫##bilibili#'
updatebilibili(name, tag)
name='西明日香'
tag='#西明日香##bilibili#'
updatebilibili(name, tag)
name='種田梨沙'
tag='#種田梨沙##bilibili#'
updatebilibili(name, tag)
name='佐倉綾音'
tag='#佐倉綾音##bilibili#'
updatebilibili(name, tag)
#更新event
name='洲崎綾/3902'
tag='#洲崎绫##Event countdown#'
updateevent(name, tag)
name='西明日香/2470'
tag='#西明日香##Event countdown#'
updateevent(name, tag)
name='種田梨沙/3528'
tag='#種田梨沙##Event countdown#'
updateevent(name, tag)
name='佐倉綾音/2650'
tag='#佐倉綾音##Event countdown#'
updateevent(name, tag)
if __name__ == '__main__':
start()