Skip to content

Commit

Permalink
Fix: Time formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaferrera committed Jan 17, 2017
1 parent f490196 commit 9bfbdbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion worker/pastebin/pastebin/pastebin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def activate(self, stoq):

def scan(self, payload=None, **kwargs):
"""
Interact with Censys API
Interact with Pastebin API
:param None payload: Unused
:param str limit: Maximum number of results to return
Expand Down Expand Up @@ -82,6 +82,7 @@ def scan(self, payload=None, **kwargs):
paste_date = int(paste['date'])
if epoch < paste_date:
paste_dates.append(paste_date)
paste['date'] = datetime.datetime.utcfromtimestamp(paste_date).isoformat()
try:
content = self.stoq.get_file(paste['scrape_url'])
paste['content'] = self.stoq.force_unicode(content)
Expand Down
2 changes: 1 addition & 1 deletion worker/pastebin/pastebin/pastebin.stoq
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Module = pastebin

[Documentation]
Author = Marcus LaFerrera
Version = 0.2
Version = 0.2.1
Website = https://github.com/PUNCH-Cyber/stoq-plugins-public
Description = Scrape pastebin content

Expand Down
2 changes: 1 addition & 1 deletion worker/pastebin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="pastebin",
version="0.2",
version="0.2.1",
author="Marcus LaFerrera (@mlaferrera)",
url="https://github.com/PUNCH-Cyber/stoq-plugins-public",
license="Apache License 2.0",
Expand Down

0 comments on commit 9bfbdbe

Please sign in to comment.