Closed shivankar-madaan closed 5 years ago
@atlking-Novetta Should we merge this?
@shivankar-madaan Could you write test case for the same?
sure @PSNAppz Just in case, any references for writing the test case, at your end?
@shivankar-madaan I think you can ask @KingAkeem about it.
@shivankar-madaan There aren't really any references for this since your making a database tests case. You're going to just need to research how to write db tests, you'll probably have to create a mock db object.
ok sure @KingAkeem I will look into it. Just pitching an idea in, should we change the json structure which is stored in database, of the result, to something like this
{ "url":"user_inputted_tor_link.onion",
"links_result":[
"tor_link1.onion",
"tor_link2.onion",
"tor_link3.onion"]
}
#the above just being one doc
{ "url":"another_user_inputted_tor_link.onion",
"links_result":[
"tor_link.onion",
"tor_link2.onion",
"tor_link4.onion"]
}
Currently one doc is just storing one link, as per the screenshot I guess, the above proposed new idea, would be in terms of the visualizer module as well. https://github.com/DedSecInside/TorBot/issues/94
Can we store some details like page title with the page so that the visual module can print names rather than printing the link.
@shivankar-madaan Status on this?
There has no been response for over a month.
Issue # not assigned
Changes Proposed
Explanation of Changes
Since Mysql was not a pip package, hence added mongo))
Screenshots of new feature/change
Creating a collection torbot, with the link field indexed and unique as True