Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes file_feed() and adds url_feed() #5

Merged
merged 1 commit into from
Apr 17, 2020
Merged

Fixes file_feed() and adds url_feed() #5

merged 1 commit into from
Apr 17, 2020

Conversation

xaocon
Copy link

@xaocon xaocon commented Apr 16, 2020

This commit breaks out feed parsing into a new _get_feed() function that
has been updated to work with how feeds work now.

file_feed() and url_feed() just specify which to get.

The return value is now a StringIO of the feed so someone could do
something like this now:

[json.loads(x) for x in file_feed(key, time).readlines()]

Closes #4

This commit breaks out feed parsing into a new `_get_feed()` function that
has been updated to work with how feeds work now.

`file_feed()` and `url_feed()` just specify which to get.

The return value is now a StringIO of the feed so someone could do
something like this now:
```
[json.loads(x) for x in file_feed(key, time).readlines()]
```
@traceflow traceflow merged commit f23038d into traceflow:master Apr 17, 2020
@xaocon xaocon deleted the feed_fix branch April 17, 2020 15:47
traceflow pushed a commit that referenced this pull request May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

virustotal3.enterprise.file_feed() broken
3 participants