-
Notifications
You must be signed in to change notification settings - Fork 0
/
SweepBack.py
41 lines (26 loc) · 1007 Bytes
/
SweepBack.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
#-*- coding:utf-8 -*-
import testRequests
import urllib
import param
class Sweep:
cookies = ""
sender = None
@staticmethod
def establish(cookies):
Sweep.cookies= cookies
Sweep.sender = testRequests.LaunchRequest(Sweep.cookies)
@staticmethod
def sweep(delValue, isReceive):
params = {}
#delValue is the number to delete.
Sweep.sender.headers['Referer'] = param.noDecComShowUnReadMessage_url
Sweep.sender.headers['Accept'] = "*/*"
Sweep.sender.headers['Connection'] = "close"
params['delValues'] = delValue
params['allMessageType'] = "0"
if isReceive:
params['senderFlag'] = "false"
else :
params['senderFlag'] = "true"
# print params
Sweep.sender.send(param.delMail_url, params, "post", 1)