-
Notifications
You must be signed in to change notification settings - Fork 4
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
Query TNS and populate candidate marshal #11
Conversation
Script that 1) querys TNS using requests (their API does not allow searching like we want) 2) makes GET requests on new targets using TNS API 3) populates candidate marshal using flows API.
Codecov Report
@@ Coverage Diff @@
## devel #11 +/- ##
=======================================
Coverage 18.58% 18.58%
=======================================
Files 21 21
Lines 1367 1367
=======================================
Hits 254 254
Misses 1113 1113 Continue to review full report at Codecov.
|
swap dates. add some more fail conditions
also change get function name
Ok I handled the majority of your comments. Let's leave fixing the query string as a todo because I'm having some difficulty with it and it's not necessary to get a basic version working. I made #15 to track that so we don't forget. I've also skipped trying to come up with a clever regex but feel free to change that if you want to. I prefer to avoid it. I'll do one final check then tag you if it should be merged |
Ok I made the changes. I think we can merge now. |
I think I wil just merge this now, and make the last couple of changes myself |
Thanks Rasmus, looking great |
Script that 1) querys TNS using requests (their API does not allow searching like we want) 2) makes GET requests on new targets using TNS API 3) populates candidate marshal using flows API.
We're currently using this script to populate the flows candidate marshal from the TNS with new candidates. Ideally, we would integrate this with the website so that the users can press a button to run it and pull the latest changes with the default values.
This script requires a new line in the config.ini file for the TNS bot api key. (I'll send that to you privately.) Technically, anyone can now use it to query the TNS for a wide range of candidates and upload those to flows.
Currently, I'm basically running this once a day to help plan our observations.