File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class PastiePaste(Paste):
12
12
def __init__ (self , id ):
13
13
self .id = id
14
14
self .headers = None
15
- self .url = 'http://pastie.org/pastes' + self .id + '/text'
15
+ self .url = 'http://pastie.org/pastes/ ' + self .id + '/text'
16
16
super (PastiePaste , self ).__init__ ()
17
17
18
18
@@ -35,7 +35,7 @@ def update(self):
35
35
results = results [:60 ]
36
36
for entry in results :
37
37
paste = PastiePaste (entry .a ['href' ].replace (
38
- self .BASE_URL + '/pastes' , '' ))
38
+ self .BASE_URL + '/pastes/ ' , '' ))
39
39
# Check to see if we found our last checked URL
40
40
if paste .id == self .ref_id :
41
41
break
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def build_tweet(paste):
57
57
tweet += ' Keywords: ' + str (paste .db_keywords )
58
58
elif paste .type == 'google_api' :
59
59
tweet += ' Found possible Google API key(s)'
60
- elif paste .type in ['Cisco ' , 'Juniper ' ]:
60
+ elif paste .type in ['cisco ' , 'juniper ' ]:
61
61
tweet += ' Possible ' + paste .type + ' configuration'
62
62
elif paste .type == 'ssh_private' :
63
63
tweet += ' Possible SSH private key'
You can’t perform that action at this time.
0 commit comments